Commit d2f55d65 authored by yann300's avatar yann300

display empty treeview instead of nothing

parent b36fe448
......@@ -16,8 +16,8 @@ class TreeView {
}
render (json) {
if (!json) {
json = {}
if (!json || !Object.keys(json).length) {
json = {' - ': ' - '}
}
var view = yo`<div>${this.renderProperties(json, true)}</div>`
if (!this.view) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment