diff --git a/src/dom_components/model/Component.js b/src/dom_components/model/Component.js index 90b16eae9..1bef1863d 100644 --- a/src/dom_components/model/Component.js +++ b/src/dom_components/model/Component.js @@ -1074,7 +1074,10 @@ const Component = Backbone.Model.extend(Styleable).extend( // If at least one match is found I have to track this change for a // better optimization inside JS generator this.scriptUpdated(); - return this.attributes[v] || ''; + const result = this.attributes[v] || ''; + return isArray(result) || typeof result == 'object' + ? JSON.stringify(result) + : result; }); return scr;