Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Fix job logs table
Browse files Browse the repository at this point in the history
  • Loading branch information
sophstad committed Jun 8, 2023
1 parent 9560561 commit 13182d4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/container/EventsTable/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useMemo } from "react";
import { useQuery } from "@apollo/client";
import styled from "@emotion/styled";
import {
Expand Down Expand Up @@ -44,7 +45,12 @@ const EventsTable: React.VFC<{}> = () => {
);
},
});
const { count, eventLogEntries } = podEventsData?.pod.events ?? {};

const { eventLogEntries, count } = useMemo(
() => podEventsData?.pod.events ?? { eventLogEntries: [], count: 0 },
[podEventsData?.pod?.events]
);

return (
<SiderCard>
<TableTitle>
Expand Down

0 comments on commit 13182d4

Please sign in to comment.