Skip to content

Commit

Permalink
Complete save picklists deps array
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Feb 17, 2025
1 parent 3302ce6 commit cb14117
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/stats/Picklist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,13 @@ export default function PicklistScreen(props: {
useEffect(() => {
if (loadingPicklists !== LoadState.Loaded) return;
savePicklistGroup(props.picklist._id, picklists, strikethroughs, api);
}, [props.picklist._id, picklists, strikethroughs]);
}, [
props.picklist._id,
picklists,
strikethroughs,
LoadState.Loaded,
loadingPicklists,
]);

const updatePicklist = useCallback(
(picklist: Picklist) => {
Expand Down

0 comments on commit cb14117

Please sign in to comment.