Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix objectJSON formatting in web-interface.
  • Loading branch information
brocaar committed Mar 2, 2020
1 parent db92afb commit 75fcf7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/src/components/JSONTree.js
Expand Up @@ -64,6 +64,10 @@ class JSONTree extends Component {
}
}

if ("objectJSON" in data && data.objectJSON !== null && data.objectJSON !== "") {
data.objectJSON = JSON.parse(data.objectJSON);
}

return(
<JSONTreeOriginal
data={data}
Expand Down

0 comments on commit 75fcf7f

Please sign in to comment.