Skip to content
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

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

V5.2.0 release #326

wants to merge 23 commits into from

Conversation

meetdhananifynd
Copy link
Collaborator

@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
Collaborator

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});
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

@@ -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);
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
Collaborator

@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
Collaborator

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.

6 participants