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 253d504126
commit 259bef4efb

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;