Skip to content

Commit

Permalink
fix(snippets): add folder prop as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Apr 1, 2022
1 parent 0f90f0d commit e28c761
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/components/snippets/SnippetListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</div>
<div class="footer">
<div class="folder">
{{ folder }}
{{ folder || 'Inbox' }}
</div>
<div class="date">
{{ dateFormat }}
Expand All @@ -39,7 +39,7 @@ import { computed, ref } from 'vue'
interface Props {
id: string
name: string
folder: string
folder?: string
date: number
isSelected: boolean
}
Expand Down Expand Up @@ -74,7 +74,7 @@ const onClickContextMenu = async () => {
})
await snippetStore.getSnippetsByFolderIds(folderStore.selectedIds!)
snippetStore.snippet = snippetStore.snippetsNonDeleted[0]
snippetStore.snippet = snippetStore.snippets[0]
}
if (action === 'duplicate') {
Expand Down

0 comments on commit e28c761

Please sign in to comment.