diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/views/Leaderboard/LeaderboardGrid.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3/views/Leaderboard/LeaderboardGrid.tsx index 47c44b1d23cd..334b681335fd 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/views/Leaderboard/LeaderboardGrid.tsx +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/views/Leaderboard/LeaderboardGrid.tsx @@ -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'; @@ -333,6 +334,10 @@ export const LeaderboardGrid: React.FC = ({ } }, [columns, defaultSortModel, loading]); + if (loading) { + return ; + } + if (rows.length === 0) { return (