atanasster / storybook-addon-deps

A storybook addon to add a dependencies tree exporer tab.
https://atanasster.github.io/storybook-addon-deps/?path=/docs/design-system-avatarlist--short
MIT License
59 stars 3 forks source link

hideEmpty is not working #6

Closed ahmetkuslular closed 4 years ago

ahmetkuslular commented 4 years ago
import { addParameters } from "@storybook/react";
import { DocsPage } from 'storybook-addon-deps/blocks';

addParameters({
  docs: { page: DocsPage },
  dependencies: {
    withStoriesOnly: true,
    hideEmpty: true,
  }
});

"@storybook/react": "^5.3.13" "storybook-addon-deps": "^1.0.11",

Although I use it this way, I still see it in stories without DEPENDENCIES and DEPENDENTS.

atanasster commented 4 years ago

Hi @ahmetkuslular thanks very much for reporting this. I believe it's now fixed with "1.0.12" - please install the new version and let me know.

The issue was when no component is assigned to a docs page and the hideEmpty was not respected.

ahmetkuslular commented 4 years ago

thank u sir, fixed. @atanasster

1.0.12