Skip to content

Commit

Permalink
fix: usememo error
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Sep 1, 2023
1 parent d670e39 commit eb1b3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/manager/DataTypeSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const DataTypeSelect = ({value, workflows, onChange}) => {
const labels = useMemo(() => {
if (!dataTypes) return {};
return Object.fromEntries(dataTypes.map(dt => [dt.id, dt.label]));
}, dataTypes);
}, [dataTypes]);

useEffect(() => {
setSelected(value);
Expand Down

0 comments on commit eb1b3e2

Please sign in to comment.