mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Avoid children variables to collapse in the editor after an undo (#6805)
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user