Skip to content

Commit 67d1962

Browse files
committed
Don't show back-to-workspace button if there was an error loading the current operating mode
This happens when the project couldn't be loaded. It's interesting how this bug is an artifact of the typesystem more than anything else.
1 parent 110122b commit 67d1962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/desktop/src/components/ChromeHeader.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
{/if}
229229
</div>
230230

231-
{#if isNotInWorkspace}
231+
{#if currentMode !== null && isNotInWorkspace}
232232
<Tooltip text="Switch back to gitbutler/workspace">
233233
<Button
234234
kind="outline"

0 commit comments

Comments
 (0)