mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-31 15:31:53 +08:00
Stringify nested JSON object
This commit is contained in:
parent
d84a86897c
commit
022aeac808
@ -215,7 +215,11 @@
|
|||||||
|
|
||||||
const content = document.createElement('div');
|
const content = document.createElement('div');
|
||||||
content.classList.add("content");
|
content.classList.add("content");
|
||||||
|
if (typeof (element[prop]) === "object") {
|
||||||
|
content.innerHTML = JSON.stringify(element[prop]);
|
||||||
|
} else {
|
||||||
content.innerHTML = element[prop];
|
content.innerHTML = element[prop];
|
||||||
|
}
|
||||||
|
|
||||||
field.appendChild(attribute);
|
field.appendChild(attribute);
|
||||||
field.appendChild(content);
|
field.appendChild(content);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user