Skip to content

Commit

Permalink
Fix bookmarks being doubled (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
lasuillard authored Nov 9, 2024
1 parent 44fbdb7 commit a05d9cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raindrop-sync-chrome",
"version": "0.4.1",
"version": "0.4.2",
"author": {
"name": "Yuchan Lee",
"url": "https://github.com/lasuillard",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tree.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
onMount(async () => {
// If root, data likely to be `null`
const collectionId = treeNode.data?._id || 0;
const collectionId = treeNode.data?._id || -1;
raindrops = await rd.raindrop.getAllRaindrops(collectionId);
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/chrome/bookmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function createBookmarks(
tree: utils.tree.TreeNode<generated.Collection | null>
) {
// If data is null, considered as root(unsorted) collection
const collectionId = tree.data?._id ?? 0;
const collectionId = tree.data?._id ?? -1;

// Create all bookmarks
const raindrops = await rd.raindrop.getAllRaindrops(collectionId);
Expand Down

0 comments on commit a05d9cf

Please sign in to comment.