Skip to content

Commit e9656c9

Browse files
committed
chore: clean up
1 parent f9211af commit e9656c9

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ context.rpc.events.on('rpc:is-trusted:updated', (isTrusted) => {
3030
isRpcTrusted.value = isTrusted
3131
})
3232
33-
// Load settings from context
34-
const settingsStore = await context.docks.getSettingsStore()
35-
const settings = sharedStateToRef(settingsStore)
33+
const settings = sharedStateToRef(await context.docks.getSettingsStore())
3634
3735
watch(
3836
() => context.docks.entries,
@@ -45,12 +43,6 @@ watch(
4543
const groupedEntries = computed(() => {
4644
return groupDockEntries(context.docks.entries, settings.value)
4745
})
48-
49-
function switchEntry(id: string) {
50-
if (id) {
51-
context.docks.switchEntry(id)
52-
}
53-
}
5446
</script>
5547

5648
<template>
@@ -68,7 +60,7 @@ function switchEntry(id: string) {
6860
:groups="groupedEntries"
6961
:is-vertical="false"
7062
:selected="context.docks.selected"
71-
@select="(e) => switchEntry(e?.id)"
63+
@select="(e) => context.docks.switchEntry(e?.id)"
7264
>
7365
<template #separator>
7466
<div class="border-base border-b w-full my-2" />

packages/core/src/client/webcomponents/components/Dock.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ onMounted(() => {
333333
<DockEntriesWithCategories
334334
:context="context"
335335
:groups="groupedEntries.visible"
336-
:overflow="groupedEntries.overflow"
337336
:is-vertical="context.panel.isVertical"
338337
:selected="context.docks.selected"
339338
@select="(e) => context.docks.switchEntry(e?.id)"

0 commit comments

Comments
 (0)