From 0e65c6b9414af1d9387a4b55a297dc33270f8f38 Mon Sep 17 00:00:00 2001 From: Tim Sweeney Date: Thu, 31 Oct 2024 18:09:40 -0600 Subject: [PATCH] Lint --- .../Home/Browse3/views/Leaderboard/LeaderboardGrid.tsx | 5 +++++ 1 file changed, 5 insertions(+) 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 47c44b1d23c..334b681335f 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 (