diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index ed281fbbc..27d836b4e 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -724,7 +724,7 @@ RED.editor = (function() { } } } - if (editTrayWidthCache[type]) { + if (editTrayWidthCache.hasOwnProperty(type)) { trayOptions.width = editTrayWidthCache[type]; }