Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Use getAsAObject to set idxArgs & inquiryArgs
Browse files Browse the repository at this point in the history
This will ensure these parts of the config being passed in are at minimum an empty object.
  • Loading branch information
B77Mills committed Jun 29, 2023
1 parent 42eb9e5 commit 2cea7cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/marko-web-theme-monorail/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import NativeX from '@parameter1/base-cms-marko-web-native-x/browser';
import IdentityX from '@parameter1/base-cms-marko-web-identity-x/browser';
import OmedaIdentityX from '@parameter1/base-cms-marko-web-omeda-identity-x/browser';
import P1Events from '@parameter1/base-cms-marko-web-p1-events/browser';
import { getAsObject } from '@parameter1/base-cms-object-path';
import IdentityXNewsletterForms from './idx-newsletter-form/index';
import ContentMeterTrack from './content-meter-track.vue';

Expand Down Expand Up @@ -40,11 +41,12 @@ export default (Browser, configOverrides = {}) => {
const { EventBus } = Browser;
const {
enableOmedaIdentityX,
idxArgs,
inquiryArgs,
withP1Events,
} = config;

const idxArgs = getAsObject(config, 'idxArgs');
const inquiryArgs = getAsObject(config, 'inquiryArgs');

if (withP1Events) {
P1Events(Browser);
}
Expand Down

0 comments on commit 2cea7cb

Please sign in to comment.