Skip to content

Commit 49bdcdf

Browse files
committed
Remove bulkActions flex if empty.
1 parent b0c4c40 commit 49bdcdf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/tableV2/features/globalControls.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ const GlobalControls = ({
3737
/>
3838
</Flex>
3939
)}
40-
<Flex gap={1} data-testid="bulk-actions" width="100%" justifyContent="end">
41-
{bulkActions}
42-
</Flex>
40+
{!!bulkActions && (
41+
<Flex gap={1} data-testid="bulk-actions" width="100%" justifyContent="end">
42+
{bulkActions}
43+
</Flex>
44+
)}
4345
</Flex>
4446
)
4547
}

0 commit comments

Comments
 (0)