diff --git a/src/commands/Project.ts b/src/commands/Project.ts index a6303a8d..748bd0bf 100644 --- a/src/commands/Project.ts +++ b/src/commands/Project.ts @@ -37,7 +37,7 @@ categories: [] await Settings.createTeamSettings(); // Add the default content type - Settings.update(SETTING_TAXONOMY_CONTENT_TYPES, [DEFAULT_CONTENT_TYPE], true); + await Settings.update(SETTING_TAXONOMY_CONTENT_TYPES, [DEFAULT_CONTENT_TYPE], true); if (sampleTemplate !== undefined) { await Project.createSampleTemplate(); diff --git a/src/dashboardWebView/components/Steps/StepsToGetStarted.tsx b/src/dashboardWebView/components/Steps/StepsToGetStarted.tsx index a3c48e6c..bb5f67c1 100644 --- a/src/dashboardWebView/components/Steps/StepsToGetStarted.tsx +++ b/src/dashboardWebView/components/Steps/StepsToGetStarted.tsx @@ -163,10 +163,10 @@ export const StepsToGetStarted: React.FunctionComponent ]; React.useEffect(() => { - if (settings.crntFramework) { - setFramework(settings.crntFramework); + if (settings.crntFramework || settings.framework?.name) { + setFramework(settings.crntFramework || settings.framework?.name || null); } - }, [settings.crntFramework]); + }, [settings.crntFramework, settings.framework]); return (