Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
Prev Previous commit
Next Next commit
Fix condition to render empty state
  • Loading branch information
benja-M-1 committed Jan 4, 2023
commit b016631a2c127ab0da9c31a94689418e8bdb34bc
2 changes: 1 addition & 1 deletion ui/src/components/DatabaseViewerDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default function DatabaseViewerDialog({
</Grid>
<Grid item xs={9}>
<>
{ tabs.length === 0 ?? <NoRowsOverlay />}
{ tabs.length === 0 && <NoRowsOverlay />}
{ tabs.length > 0 && (
<TabContext value={selectedTab}>
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
Expand Down