From 992a541d5b060c8bbcf802b12b225551e73e573d Mon Sep 17 00:00:00 2001 From: ibolton336 Date: Mon, 25 Sep 2023 15:12:05 -0400 Subject: [PATCH] :bug: Don't allow an archetype to be assessed if empty Signed-off-by: ibolton336 --- client/src/app/pages/archetypes/archetypes-page.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/app/pages/archetypes/archetypes-page.tsx b/client/src/app/pages/archetypes/archetypes-page.tsx index 60fad8847d..8f4fb094f0 100644 --- a/client/src/app/pages/archetypes/archetypes-page.tsx +++ b/client/src/app/pages/archetypes/archetypes-page.tsx @@ -295,6 +295,9 @@ const Archetypes: React.FC = () => { title: t("actions.assess"), onClick: () => assessSelectedArchetype(archetype), + isDisabled: + !archetype.applications || + archetype.applications.length === 0, }, { title: t("actions.review"), @@ -304,6 +307,9 @@ const Archetypes: React.FC = () => { archetypeId: archetype.id, }) ), + isDisabled: + !archetype.applications || + archetype.applications.length === 0, }, { title: t("actions.edit"),