diff --git a/.changeset/eleven-buckets-tickle.md b/.changeset/eleven-buckets-tickle.md new file mode 100644 index 000000000..a95116c39 --- /dev/null +++ b/.changeset/eleven-buckets-tickle.md @@ -0,0 +1,5 @@ +--- +"druxt-entity": patch +--- + +Fixed bug with DruxtEntity Storybook and unpublished content. diff --git a/packages/entity/src/nuxtStorybook.js b/packages/entity/src/nuxtStorybook.js index 569ba6d98..908975c7f 100644 --- a/packages/entity/src/nuxtStorybook.js +++ b/packages/entity/src/nuxtStorybook.js @@ -41,6 +41,7 @@ export default async function ({ stories }) { return { resourceType: `${entity}--${bundle}`, entities: (await druxt.getCollection(`${entity}--${bundle}`, new DrupalJsonApiParams() + .addFilter('status', 1) .addFields(`${entity}--${bundle}`, ['id', 'title', 'name', 'info']) )).data.map((o) => ({ id: o.id,