Commit cd0c5234 authored by Matthieu Fesselier's avatar Matthieu Fesselier

bugfix: handle empty ids in resources

parent a2a237bb
Pipeline #6545 passed with stage
in 3 minutes and 25 seconds
......@@ -345,7 +345,7 @@ class CustomGetter {
switch (property) {
case '@id':
return this.getCompactedIri(this.resource['@id']); // Compact @id if possible
return this.getCompactedIri(this.resource['@id'] || this.resourceId); // Compact @id if possible
case '@type':
return this.resource['@type']; // return synchronously
case 'properties':
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