display empty treeview instead of nothing

pull/7/head
yann300 8 years ago
parent b36fe448bf
commit d2f55d65f2
  1. 4
      src/ui/TreeView.js

@ -16,8 +16,8 @@ class TreeView {
} }
render (json) { render (json) {
if (!json) { if (!json || !Object.keys(json).length) {
json = {} json = {' - ': ' - '}
} }
var view = yo`<div>${this.renderProperties(json, true)}</div>` var view = yo`<div>${this.renderProperties(json, true)}</div>`
if (!this.view) { if (!this.view) {

Loading…
Cancel
Save