Skip to content

Commit 9007fdc

Browse files
committed
Small fixes
1 parent 85cbb07 commit 9007fdc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/syntax/prepare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ module.exports = function(data, { defineObjectMarker, addQueryHelpers, query })
281281
patch(current) {
282282
if (current) {
283283
if (current.type === 'Property' || current.type === 'Type') {
284-
return data.patch[current.type === 'Property' ? 'properties' : 'syntaxes'][current.name] || null;
284+
return data.patch[current.type === 'Property' ? 'properties' : 'types'][current.name] || null;
285285
}
286286
}
287287
return null;

src/syntax/ui/view/syntax-tree.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ discovery.view.define('syntax-tree', {
1212
when: 'size()',
1313
limit: false,
1414
item: [
15-
'auto-link',
15+
{
16+
view: 'auto-link',
17+
postRender(el, _, data) {
18+
if (!data.match) {
19+
el.firstChild.classList.add('error');
20+
}
21+
}
22+
},
1623
'text:" = "',
1724
{
1825
view: 'switch',

0 commit comments

Comments
 (0)