Skip to content

Commit

Permalink
#56 fix: deselect all tags
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Feb 4, 2024
1 parent 6416cd9 commit 9104524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/PopupPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export default defineComponent({
let filteredBookmarks1 = bookmarks.value.slice(); // Copy bookmarks array
// filter by tags
if (selectedTags.value.length > 0) {
if (selectedTags.value && selectedTags.value.length > 0) {
filteredBookmarks1 = filteredBookmarks1.filter((bookmark) => {
return selectedTags.value.every((elem) => bookmark.tags.includes(elem));
});
Expand Down

0 comments on commit 9104524

Please sign in to comment.