Skip to content

Commit

Permalink
fix: handle the case where no job is available
Browse files Browse the repository at this point in the history
  • Loading branch information
aldbr committed Sep 28, 2023
1 parent 215ac97 commit 6702591
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified public/showcase1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/app/components/JobDataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export function JobDataGrid() {
if (error) {
return <div>An error occurred while fetching jobs.</div>;
}

if (!data) {
if (!data || data.length == 0) {
return <div>No job submitted.</div>;
}

Expand Down

0 comments on commit 6702591

Please sign in to comment.