ochre-sdk 1.0.28 → 1.0.29
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.
- package/dist/fetchers/item.mjs +1 -1
- package/package.json +1 -1
package/dist/fetchers/item.mjs
CHANGED
|
@@ -109,7 +109,7 @@ async function fetchItem(uuid, options) {
|
|
|
109
109
|
const categories = [];
|
|
110
110
|
for (const possibleCategory of options.category) if (isItemCategoryWithEmbeddedItems(possibleCategory)) categories.push(possibleCategory);
|
|
111
111
|
omitEmbeddedItemsCategory = categories;
|
|
112
|
-
shouldFetchOmittedEmbeddedItems = categories.length > 0;
|
|
112
|
+
shouldFetchOmittedEmbeddedItems = shouldOmitEmbeddedItems && categories.length > 0;
|
|
113
113
|
}
|
|
114
114
|
const languages = options?.languages == null ? [] : parseLanguages(options.languages);
|
|
115
115
|
const fetcher = options?.fetch ?? fetch;
|