Commit 2603a133 authored by yann300's avatar yann300

remove displaying empty obj + typo

parent d2f55d65
......@@ -16,9 +16,6 @@ class TreeView {
}
render (json) {
if (!json || !Object.keys(json).length) {
json = {' - ': ' - '}
}
var view = yo`<div>${this.renderProperties(json, true)}</div>`
if (!this.view) {
this.view = view
......@@ -58,7 +55,7 @@ class TreeView {
if (this.beforeJsonValueRendered) {
this.beforeJsonValueRendered(label, item, key)
}
return yo`<li style=${this.cssList}>${label} : <span style=${this.cssLabel} >${item}</span></li>`
return yo`<li style=${this.cssList}>${label}: <span style=${this.cssLabel} >${item}</span></li>`
}
}
......
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