diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2025-01-18 15:41:42 -0500 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2025-01-18 15:41:42 -0500 |
commit | 3b8758c14e668e1f57af8f7424442ebca22017c3 (patch) | |
tree | ce53ccea5e0853d27226617758bf1b44f743d19c /extension/src/components/Bookmark.tsx | |
parent | 279e8c7ea4f7e48ee68844e4347a67e5875faaa2 (diff) | |
download | bookmarks-home-3b8758c14e668e1f57af8f7424442ebca22017c3.tar.gz bookmarks-home-3b8758c14e668e1f57af8f7424442ebca22017c3.tar.bz2 bookmarks-home-3b8758c14e668e1f57af8f7424442ebca22017c3.zip |
Fix bmEditing without refresh
Diffstat (limited to 'extension/src/components/Bookmark.tsx')
-rw-r--r-- | extension/src/components/Bookmark.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extension/src/components/Bookmark.tsx b/extension/src/components/Bookmark.tsx index 05d0430..bf075a3 100644 --- a/extension/src/components/Bookmark.tsx +++ b/extension/src/components/Bookmark.tsx @@ -47,7 +47,7 @@ function Bookmark(props: {id: string}) { parentId: bmData.parentId, index: bmData.index }) - location.reload() + // location.reload() }; const handleDropRight = () => { @@ -55,7 +55,7 @@ function Bookmark(props: {id: string}) { parentId: bmData.parentId, index: (bmData.index! + 1) }) - location.reload(); + // location.reload(); }; const handleDropCenter = () => { @@ -66,14 +66,14 @@ function Bookmark(props: {id: string}) { }).then(r => { getBrowser().bookmarks.move(bmData.id, {parentId: r.id}); getBrowser().bookmarks.move(activeDrag!.id, {parentId: r.id}); - location.reload() + // location.reload() }) }; // actions const handleDelete = () => { getBrowser().bookmarks.remove(bmData.id); - location.reload(); + // location.reload(); }; const handleEdit = (e: React.MouseEvent<HTMLButtonElement>) => { |