Skip to content

Commit

Permalink
fix: misssing test results
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 10, 2021
1 parent d8933f5 commit d522a0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/blocks/src/TestsResults/TestsResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ export const TestsResults: FC<TestsResultsProps> = ({
const props = useCustomProps<TestsResultsProps>('tests_results', rest);
const component = useStoryComponent({ id, name });

if (!component?.jest?.results.length) {
if (
!component?.jest?.results.length ||
!component.jest.results[0].testResults.length
) {
return null;
}
console.log(component?.jest?.results);
return (
<BlockContainer {...props}>
<BaseTestsResults component={component} pagination={pagination} />
Expand Down

0 comments on commit d522a0f

Please sign in to comment.