Avoid children variables to collapse in the editor after an undo (#6805)

This commit is contained in:
D8H
2024-07-26 14:43:38 +02:00
committed by GitHub
parent a9108fa87b
commit 2585ad5dca

View File

@@ -1194,8 +1194,8 @@ const VariablesList = (props: Props) => {
} else if (type === gd.Variable.Array) {
variable.pushNew();
}
_onChange();
if (variable.isFolded()) variable.setFolded(false);
_onChange();
forceUpdate();
},
[_onChange, forceUpdate, props.variablesContainer]