diff --git a/editor/js/tools/menus/selectmenu.js b/editor/js/tools/menus/selectmenu.js index 28d06a09b9d3cad94d3c6deb607ddbd61de70998..dab340eb6388a7c50ef2845098b1bf9a6aea2b21 100644 --- a/editor/js/tools/menus/selectmenu.js +++ b/editor/js/tools/menus/selectmenu.js @@ -185,7 +185,7 @@ export class SelectMenu extends ToolMenu { var value = node[propertyKey]; var formattedValue = undefined; - if (propertyKey === Graph.NODE_REFERENCES) { + if (propertyKey === Graph.NODE_REFERENCES && Array.isArray(value)) { formattedValue = value.join("\n"); } else { formattedValue = value;