From ec80baa602a3ee84ed869200ea181ac2d416670d Mon Sep 17 00:00:00 2001 From: josh Date: Fri, 9 Jun 2023 23:07:41 -0400 Subject: [PATCH] Just return null if no entity Signed-off-by: josh --- .../EntityNomadJobVersionListCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nomad/src/components/EntityNomadJobVersionListCard/EntityNomadJobVersionListCard.tsx b/plugins/nomad/src/components/EntityNomadJobVersionListCard/EntityNomadJobVersionListCard.tsx index c40a7fbeed..0c1863b95e 100644 --- a/plugins/nomad/src/components/EntityNomadJobVersionListCard/EntityNomadJobVersionListCard.tsx +++ b/plugins/nomad/src/components/EntityNomadJobVersionListCard/EntityNomadJobVersionListCard.tsx @@ -114,7 +114,7 @@ export const EntityNomadJobVersionListCard = () => { return ; } - if (!entity) return <>; + if (!entity) return null; // Check that job ID is set if (!isNomadJobIDAvailable(entity)) {