Skip to content

Commit

Permalink
cleanup after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
zmc committed Oct 3, 2024
1 parent 76a1408 commit 9c3ba9a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/RunList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ export default function RunList(props: RunListProps) {
const newUrl = getUrl(context.urlPathname, columnFilters, updater(pagination));
navigate(newUrl.pathname + newUrl.search);
};
const query = useRuns(debouncedParams);
let data = query.data || [];
const data: Run[] = useData();
const jobTotals = useMemo(() => {
const result: Partial<RunResults> = {};
RunResultKeys.forEach(
Expand All @@ -256,9 +255,6 @@ export default function RunList(props: RunListProps) {
const columns = useMemo(() => _columns.map(col =>
col.header in jobTotals? {...col, Footer: jobTotals[col.header as RunResult]} : col
), [data]);
const query = useRuns(debouncedParams);
let data = query.data || [];
const data: Run[] = useData();
const table = useMaterialReactTable({
...options,
columns,
Expand Down

0 comments on commit 9c3ba9a

Please sign in to comment.