Refactor: Add showModalAdvanced to useEffect dependencies to prevent EditNodeModal not updating bug
This commit is contained in:
parent
b3ea99ece3
commit
04a69bbf74
1 changed files with 1 additions and 6 deletions
|
|
@ -76,12 +76,7 @@ export default function NodeToolbarComponent({
|
|||
|
||||
useEffect(() => {
|
||||
setFlowComponent(createFlowComponent(cloneDeep(data), version));
|
||||
}, [data]);
|
||||
|
||||
function onOverrideModalConfirmation(override: boolean): void {
|
||||
if (override) saveComponent(cloneDeep(data), true);
|
||||
saveComponent(cloneDeep(data), false);
|
||||
}
|
||||
}, [data, showModalAdvanced]);
|
||||
|
||||
const handleSelectChange = (event) => {
|
||||
switch (event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue