diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/properties.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/properties.js index 5f704cc65..cfa72be10 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/properties.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/panes/properties.js @@ -138,22 +138,17 @@ } } }); + /** * Compares `newValue` with `originalValue` for equality. - * NOTES: - * * If `newValue` is a string or number, comparison is not strict - * * If `newValue` is anything else, comparison is strict * @param {*} originalValue Original value * @param {*} newValue New value * @returns {boolean} true if originalValue equals newValue, otherwise false */ - function isEqual(originalValue, newValue) { + function isEqual(originalValue, newValue) { try { - if (typeof newValue === "string" || typeof newValue === "number") { - return originalValue == newValue; - } - if (typeof newValue === "boolean") { - return originalValue === newValue; + if(originalValue == newValue) { + return true; } return JSON.stringify(originalValue) === JSON.stringify(newValue); } catch (err) {