ochre-sdk 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -314,7 +314,7 @@ function parseWebElementProperties(componentProperty, elementResource, options,
|
|
|
314
314
|
break;
|
|
315
315
|
}
|
|
316
316
|
case "bibliography": {
|
|
317
|
-
const itemLinks = websiteLinks.filter((link) => link.category
|
|
317
|
+
const itemLinks = websiteLinks.filter((link) => link.category === "bibliography");
|
|
318
318
|
const bibliographies = parseBibliographyList(elementResource.bibliographies, options);
|
|
319
319
|
if (itemLinks.length === 0 && bibliographies.length === 0) throw new Error(formatComponentError("No links found", componentName, elementResource), { cause: componentProperty });
|
|
320
320
|
const layout = componentReader.valueOr("layout", "long");
|