diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js index 3249a5cbb..9092d4dcf 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js @@ -923,7 +923,7 @@ var previousType = this.typeMap[this.propertyType]; previousValue = this.input.val(); - if (this.typeChanged) { + if (previousType && this.typeChanged) { if (this.options.debug) { console.log(this.identifier,"typeChanged",{previousType,previousValue}) } if (previousType.options && opt.hasValue !== true) { this.oldValues[previousType.value] = previousValue;