Skip to content

Commit b1c2489

Browse files
authored
fix(core): avoid unselecting entry for standalone app (#183)
1 parent 674c42c commit b1c2489

File tree

1 file changed

+7
-1
lines changed
  • packages/core/src/client/standalone

1 file changed

+7
-1
lines changed

packages/core/src/client/standalone/App.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ watch(
3535
},
3636
{ immediate: true },
3737
)
38+
39+
function switchEntry(id: string | undefined) {
40+
if (id) {
41+
context.docks.switchEntry(id)
42+
}
43+
}
3844
</script>
3945

4046
<template>
@@ -52,7 +58,7 @@ watch(
5258
:groups="context.docks.groupedEntries"
5359
:is-vertical="false"
5460
:selected="context.docks.selected"
55-
@select="(e) => context.docks.switchEntry(e?.id)"
61+
@select="(e) => switchEntry(e?.id)"
5662
>
5763
<template #separator>
5864
<div class="border-base border-b w-full my-2" />

0 commit comments

Comments
 (0)