fix(playground): initialize tree nodes with a 'plain' class
This commit is contained in:
parent
4c51f27b0a
commit
f475182c7d
1 changed files with 3 additions and 3 deletions
|
|
@ -292,10 +292,10 @@ window.initializePlayground = async (opts) => {
|
|||
|
||||
const nodeClass =
|
||||
displayName === 'ERROR' || displayName.startsWith('MISSING')
|
||||
? 'node-link error'
|
||||
? 'node-link error plain'
|
||||
: cursor.nodeIsNamed
|
||||
? 'node-link named'
|
||||
: 'node-link anonymous';
|
||||
? 'node-link named plain'
|
||||
: 'node-link anonymous plain';
|
||||
|
||||
row = `<div class="tree-row">${" ".repeat(indentLevel)}${fieldName}` +
|
||||
`<a class='${nodeClass}' href="#" data-id=${id} ` +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue