stopped using tidy component in the use effect that ran the callback
This commit is contained in:
parent
e612ef4e7f
commit
6d6c5c8a47
1 changed files with 2 additions and 3 deletions
|
|
@ -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 => {
|
||||
|
|
@ -950,7 +949,7 @@ export default function ComponentForm(props: Props) {
|
|||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
checked={measure}
|
||||
checked={measure}
|
||||
onChange={toggleMeasure}
|
||||
name="measure"
|
||||
aria-label="measure"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue