mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-16 00:05:56 +08:00
fix condition hooks rendering bug
This commit is contained in:
parent
350cee78b9
commit
6c411d4f5b
@ -617,6 +617,10 @@ export const Tree = React.memo<{
|
||||
|
||||
const isDisplayed = !item.parent || ancestry[itemId].every((a: string) => expanded[a]);
|
||||
|
||||
if (isDisplayed === false) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Node
|
||||
api={api}
|
||||
|
Loading…
x
Reference in New Issue
Block a user