fix(striker-ui): add start epoch to JobSummary

main
Tsu-ba-me 2 years ago
parent 3fd6c9d841
commit e28ad3b0b2
  1. 4
      striker-ui/components/JobSummary.tsx

@ -63,7 +63,9 @@ const JobSummary = forwardRef<JobSummaryForwardedRefContent, JobSummaryProps>(
HTMLElement | undefined HTMLElement | undefined
>(); >();
periodicFetch<AnvilJobs>(`${API_BASE_URL}/job`, { const loadTimestamp = useMemo(() => Math.floor(Date.now() / 1000), []);
periodicFetch<AnvilJobs>(`${API_BASE_URL}/job?start=${loadTimestamp}`, {
onError: () => { onError: () => {
setAnvilJobs({}); setAnvilJobs({});
}, },

Loading…
Cancel
Save