Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tssweeney committed Nov 1, 2024
1 parent 42fcea8 commit 0e65c6b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
GridSortDirection,
GridSortItem,
} from '@mui/x-data-grid-pro';
import {Loading} from '@wandb/weave/components/Loading';
import {Timestamp} from '@wandb/weave/components/Timestamp';
import React, {useCallback, useEffect, useMemo, useState} from 'react';
import {useHistory} from 'react-router-dom';
Expand Down Expand Up @@ -333,6 +334,10 @@ export const LeaderboardGrid: React.FC<LeaderboardGridProps> = ({
}
}, [columns, defaultSortModel, loading]);

if (loading) {
return <Loading centered />;
}

if (rows.length === 0) {
return (
<Box
Expand Down

0 comments on commit 0e65c6b

Please sign in to comment.