Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
Signed-off-by: Anan Z <[email protected]>
  • Loading branch information
ananzh committed Feb 5, 2024
1 parent 80cb5bd commit 9966970
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ export const DiscoverTable = ({ rows }: Props) => {
return null;
}

if (!rows || rows.length === 0) {
// TODO: handle better
return <div>{'loading...'}</div>;
}

return (
<DataGridTable
columns={columns}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ export default function DiscoverCanvas({ setHeaderActionMenu, history }: ViewPro
const timeField = indexPattern?.timeFieldName ? indexPattern.timeFieldName : undefined;
const lastColumn = columns ? columns[columns.length - 1] : '';

if (!rows || rows.length === 0) {
// TODO: handle better
return <div>{'loading...'}</div>;
}

return (
<EuiPanel
hasBorder={false}
Expand Down

0 comments on commit 9966970

Please sign in to comment.