Skip to content

Conversation

@meetdhananifynd
Copy link
Contributor

@meetdhananifynd meetdhananifynd commented Jul 11, 2024

\n if(fynd_platform_cdn) {
\n cdnUrl = fynd_platform_cdn
\n } else {
\n throw new Error("undefiend variable")}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why throwing error is needed when simply assignment of assetNormalizedBasePath is required?
Also code needs to be formatted

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can omit try-catch altogether here, Doesn't seems it is required here.

config['company_id'] = selectedCompany;
// config['application_id'] = "6672cdcc9399006687477a5c";
// config['company_id'] = 63;
console.log({config});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comments and logs

switch (currentContext.theme_type) {
case THEME_TYPE.react:
await Theme.syncReactTheme(currentContext);
await Theme.syncReactTheme(currentContext, undefined);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why undefined needs to be passed here?

Copy link
Contributor

@Shivraj0 Shivraj0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed.

\n if(fynd_platform_cdn) {
\n cdnUrl = fynd_platform_cdn
\n } else {
\n throw new Error("undefiend variable")}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can omit try-catch altogether here, Doesn't seems it is required here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants