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) {
if (!json) {
json = {}
if (!json || !Object.keys(json).length) {
json = {' - ': ' - '}
}
var view = yo`<div>${this.renderProperties(json, true)}</div>`
if (!this.view) {

Loading…
Cancel
Save