Skip to content

Commit f420042

Browse files
committed
fix: Fix type references with graph evaluation
1 parent 227e582 commit f420042

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/PropertyShapeDocument.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,19 +499,18 @@ export class PropertyShapeDocument extends PropertyDocumentMixin(LitElement) {
499499
dElm[0],
500500
this.ns.aml.vocabularies.docSourceMaps.element
501501
);
502-
this._targetTypeId = id;
503502
const type = this._getType(amf, id);
504503
if (!type) {
505504
return;
506505
}
507506

507+
this._targetTypeId = id;
508508
this._targetTypeName = this._getValue(type, this.ns.w3.shacl.name);
509509
}
510510

511511
_getType(amf, id) {
512-
const dcs = this._computeDeclares(amf);
513-
let refs; // this._computeReferences(amf);
514-
return this._computeType(dcs, refs, id);
512+
const refs = this._computeReferences(amf);
513+
return this._computeReferenceType(refs, id);
515514
}
516515

517516
_navigateType() {

0 commit comments

Comments
 (0)