Just return null if no entity

Signed-off-by: josh <josh.timmons@hashicorp.com>
This commit is contained in:
josh
2023-06-09 23:07:41 -04:00
parent 031b8bed5a
commit ec80baa602
@@ -114,7 +114,7 @@ export const EntityNomadJobVersionListCard = () => {
return <ResponseErrorPanel error={err} />;
}
if (!entity) return <></>;
if (!entity) return null;
// Check that job ID is set
if (!isNomadJobIDAvailable(entity)) {