Skip to content

Commit

Permalink
fix: update dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Aug 4, 2023
1 parent f40d459 commit 9aa09f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/src/checklist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ export const
styles={{ root: { marginBottom: 4 }, checkmark: { display: 'flex' } }} // Fix: Center the checkmark in the checkbox.
/>
))
// eslint-disable-next-line react-hooks/exhaustive-deps
React.useEffect(() => { wave.args[m.name] = m.values || [] }, [m.values])
React.useEffect(() => { wave.args[m.name] = m.values || [] }, [m.name, m.values])
React.useEffect(() => { setChoices(getMappedChoices()) }, [getMappedChoices, m.choices])
return (
<div data-test={m.name}>
Expand Down

0 comments on commit 9aa09f0

Please sign in to comment.