-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V5.2.0 release #326
base: master
Are you sure you want to change the base?
V5.2.0 release #326
Conversation
…nto v5.2.0-release
\n if(fynd_platform_cdn) { | ||
\n cdnUrl = fynd_platform_cdn | ||
\n } else { | ||
\n throw new Error("undefiend variable")} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
@@ -350,6 +348,10 @@ export default class Theme { | |||
}); | |||
config['application_id'] = selectedApplication; | |||
config['company_id'] = selectedCompany; | |||
// config['application_id'] = "6672cdcc9399006687477a5c"; | |||
// config['company_id'] = 63; | |||
console.log({config}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comments and logs
@@ -822,7 +821,7 @@ export default class Theme { | |||
const currentContext = getActiveContext(); | |||
switch (currentContext.theme_type) { | |||
case THEME_TYPE.react: | |||
await Theme.syncReactTheme(currentContext); | |||
await Theme.syncReactTheme(currentContext, undefined); |
There was a problem hiding this comment.
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?
There was a problem hiding this 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")} |
There was a problem hiding this comment.
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.
This merges
https://github.com/gofynd/fdk-cli/pull/323
https://github.com/gofynd/fdk-cli/pull/322
https://github.com/gofynd/fdk-cli/pull/316/