Merge pull request #548 from tendant/master

Stringify nested JSON object
This commit is contained in:
Clément Renault 2020-03-27 19:57:34 +01:00 committed by GitHub
commit 565c46fdd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,7 +215,11 @@
const content = document.createElement('div');
content.classList.add("content");
content.innerHTML = element[prop];
if (typeof (element[prop]) === "object") {
content.innerHTML = JSON.stringify(element[prop]);
} else {
content.innerHTML = element[prop];
}
field.appendChild(attribute);
field.appendChild(content);