mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Merge pull request #548 from tendant/master
Stringify nested JSON object
This commit is contained in:
commit
565c46fdd4
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue