Skip to content

Commit

Permalink
Fix suggested fields load
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed Aug 28, 2024
1 parent cbf5bef commit d64b5f3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "5.6.52",
"version": "5.6.53",
"description": "All-in-one bookmark manager",
"author": "Rustem Mussabekov",
"license": "MIT",
Expand Down
7 changes: 5 additions & 2 deletions src/co/bookmarks/edit/form/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ export default function BookmarkEditForm(props) {

//load suggestions
useEffect(()=>
dispatch(suggestFields(props.item)),
[props.item._id]
{
if (props.status == 'loaded' || props.status == 'new')
dispatch(suggestFields(props.item))
},
[props.item._id, props.status]
)

const onSubmitForm = useCallback(e=>{
Expand Down
32 changes: 16 additions & 16 deletions src/target/extension/background/highlights/highlight.js

Large diffs are not rendered by default.

0 comments on commit d64b5f3

Please sign in to comment.