improved node name

pull/428/head
aniket-engg 4 years ago committed by Aniket
parent 7945b25d9a
commit 61486a77e5
  1. 2
      apps/remix-ide/src/app/editor/contextView.js

@ -125,7 +125,7 @@ class ContextView {
_render (node, nodeAtCursorPosition) {
if (!node) return yo`<div></div>`
let references = this.contextualListener.referencesOf(node)
const type = node && node.typeDescriptions.typeString ? node.typeDescriptions.typeString : node.name
const type = node.typeDescriptions && node.typeDescriptions.typeString ? node.typeDescriptions.typeString : node.nodeType
references = `${references ? references.length : '0'} reference(s)`
let ref = 0

Loading…
Cancel
Save