stopped using tidy component in the use effect that ran the callback

This commit is contained in:
csawatzky 2025-05-08 14:14:57 -06:00
parent e612ef4e7f
commit 6d6c5c8a47

View file

@ -237,8 +237,7 @@ export default function ComponentForm(props: Props) {
};
useEffect(() => {
let comp = tidyComponent(form.component);
componentChanged(comp, isFormValid());
componentChanged(form.component, isFormValid());
}, [form.component, componentChanged]); // eslint-disable-line react-hooks/exhaustive-deps
const isNameValid = (name: string): boolean => {