Make hideWidget safer

This commit is contained in:
Chris 2023-09-11 16:07:13 +10:00
parent c5aba54c8a
commit 400300c9dc

View File

@ -9,6 +9,7 @@ function isConvertableWidget(widget, config) {
}
function hideWidget(node, widget, suffix = "") {
if (widget.type.includes(CONVERTED_TYPE)) { return; } // already hidden, don't do it again
widget.origType = widget.type;
widget.origComputeSize = widget.computeSize;
widget.origSerializeValue = widget.serializeValue;