diff --git a/_c8oProject/mobileSharedComponents/BaseRowGrid.yaml b/_c8oProject/mobileSharedComponents/BaseRowGrid.yaml index 33c0d65..042d2e8 100644 --- a/_c8oProject/mobileSharedComponents/BaseRowGrid.yaml +++ b/_c8oProject/mobileSharedComponents/BaseRowGrid.yaml @@ -314,16 +314,19 @@ comment: | // return the html string let html = ''''; let value = data.value; - for (let i = 0; i < value.length; i++) { - html += ''''; + if (value instanceof Array) { + + for (let i = 0; i < value.length; i++) { + html += ''''; + } + // now create a dom object from the html string + let div = document.createElement(''div''); + div.innerHTML = html; + // return the dom object + return div; } - // now create a dom object from the html string - let div = document.createElement(''div''); - div.innerHTML = html; - // return the dom object - return div; } resolve();