Skip to content

Commit

Permalink
fix: fixing bookmark list to empty items
Browse files Browse the repository at this point in the history
  • Loading branch information
ailtonloures committed Nov 5, 2024
1 parent 9e613de commit 17f8efb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data/store/bookmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function createBookmark(filePath) {
}

function getBookmarks(limit = 10) {
return store.get(storeName).slice(0, limit);
const bookmarkList = store.get(storeName) || [];
return bookmarkList.slice(0, limit);
}

function deleteBookmark(id) {
Expand Down

0 comments on commit 17f8efb

Please sign in to comment.