Skip to content

Commit

Permalink
satisfy react warning about dependencies for useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
nbarlowATI committed May 31, 2022
1 parent 84e85f9 commit a729749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/ItemEditor.js
Expand Up @@ -43,7 +43,7 @@ function ItemEditor(props) {
return () => {
unmounted = true;
};
}, []);
}, [props.id, props.type]);

function handleDelete(event) {
deleteDBObject().then((resolve) => props.updateView());
Expand Down

0 comments on commit a729749

Please sign in to comment.