Skip to content

Commit 25b4494

Browse files
committed
fix(snippets): show placeholder for not selected snippet
1 parent 1776679 commit 25b4494

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/renderer/components/snippets/SnippetsView.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ const lang = computed({
5959
6060
const isShowPlaceholder = computed(() => {
6161
return (
62-
snippetStore.selectedMultiple.length || snippetStore.snippets.length === 0
62+
snippetStore.selectedMultiple.length ||
63+
!snippetStore.selected ||
64+
snippetStore.snippets.length === 0
6365
)
6466
})
6567

0 commit comments

Comments
 (0)