fix contextview

pull/3094/head
yann300 7 years ago
parent 389b7ea507
commit 923814774b
  1. 4
      src/app/editor/contextView.js

@ -109,7 +109,7 @@ class ContextView {
if (target) { if (target) {
this._current = target this._current = target
} else { } else {
this._current = last this._current = null
} }
} }
} }
@ -123,7 +123,7 @@ class ContextView {
if (!node) return yo`<div></div>` if (!node) return yo`<div></div>`
var self = this var self = this
var references = this._api.contextualListener.referencesOf(node) var references = this._api.contextualListener.referencesOf(node)
var type = node.attributes.type ? node.attributes.type : node.name var type = (node.attributes && node.attributes.type) ? node.attributes.type : node.name
references = `${references ? references.length : '0'} reference(s)` references = `${references ? references.length : '0'} reference(s)`
var ref = 0 var ref = 0

Loading…
Cancel
Save