Skip to content

Commit ca333aa

Browse files
committed
fix: useRunningJob, 404 page layout
1 parent 7e84fa9 commit ca333aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { RiCloseLargeLine } from 'react-icons/ri';
33

44
export default function NotFound() {
55
return (
6-
<div className="flex w-full flex-1 justify-center pt-24">
6+
<div className="center-all min-h-screen w-full flex-1">
77
<DetailedAlert
88
variant="red"
99
icon={<RiCloseLargeLine />}

src/lib/hooks/useRunningJob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function useRunningJob(jobId?: string, options?: UseRunningJobOptions) {
5050
appsOverride,
5151
);
5252

53-
if (!resources || runningJobsWithDetails.length !== 1) {
53+
if (!resources || !runningJobsWithDetails.length) {
5454
console.error({ resources, runningJobsWithDetails });
5555
throw new Error('Invalid job, unable to fetch resources.');
5656
}

0 commit comments

Comments
 (0)