Prevent hideWidget being called twice for same widget

Fix for #2766
This commit is contained in:
chrisgoringe 2024-02-12 08:59:25 +11:00 committed by GitHub
parent 02409c30d9
commit cf4910a3a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ function isConvertableWidget(widget, config) {
}
function hideWidget(node, widget, suffix = "") {
if (widget.type?.startsWith(CONVERTED_TYPE)) return;
widget.origType = widget.type;
widget.origComputeSize = widget.computeSize;
widget.origSerializeValue = widget.serializeValue;