mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-02 05:03:44 +08:00
Fixed null check condition
This commit is contained in:
parent
92b17e994c
commit
db2ae608aa
@ -126,7 +126,7 @@ const Content = styled(({ tests, className }: ContentProps) => (
|
||||
const entries: any = testsByType.entries();
|
||||
const sortedTestsByCount = [...entries].sort((a, b) => a[1].length - b[1].length);
|
||||
|
||||
if (!testsByType && !entries && sortedTestsByCount && result.assertionResults) {
|
||||
if (!testsByType && !entries && !sortedTestsByCount && !result.assertionResults) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user