Commit 078b0dd3 authored by yann300's avatar yann300

fix contextview

parent a93fb9a7
......@@ -109,7 +109,7 @@ class ContextView {
if (target) {
this._current = target
} else {
this._current = last
this._current = null
}
}
}
......@@ -123,7 +123,7 @@ class ContextView {
if (!node) return yo`<div></div>`
var self = this
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)`
var ref = 0
......
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