From 8569ab98c20b84ed3b77f94f7034307e0b18ecf0 Mon Sep 17 00:00:00 2001 From: somebody1234 Date: Mon, 15 May 2023 21:47:51 +1000 Subject: [PATCH] Fix `--startup.project` to bypass opening dashboard (#6671) --- app/ide-desktop/lib/content/src/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/ide-desktop/lib/content/src/index.ts b/app/ide-desktop/lib/content/src/index.ts index af9bb17ba35..236aca13cb6 100644 --- a/app/ide-desktop/lib/content/src/index.ts +++ b/app/ide-desktop/lib/content/src/index.ts @@ -187,7 +187,12 @@ class Main implements AppRunner { const isOpeningMainEntryPoint = contentConfig.OPTIONS.groups.startup.options.entry.value === contentConfig.OPTIONS.groups.startup.options.entry.default - if ((isUsingAuthentication || isUsingNewDashboard) && isOpeningMainEntryPoint) { + const isNotOpeningProject = contentConfig.OPTIONS.groups.startup.options.entry.value === '' + if ( + (isUsingAuthentication || isUsingNewDashboard) && + isOpeningMainEntryPoint && + isNotOpeningProject + ) { const hideAuth = () => { const auth = document.getElementById('dashboard') const ide = document.getElementById('root')