From dbbc801e7d15919f21523253d6cc0ca57b600959 Mon Sep 17 00:00:00 2001 From: "konveyor-ci-bot[bot]" <159171263+konveyor-ci-bot[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:05:33 -0400 Subject: [PATCH] :bug: [backport release-0.5] Allow creating archetype without tags (#2047) (#2050) Resolves: https://github.com/konveyor/tackle2-ui/issues/1999 Backport-of: #2047 Signed-off-by: Radoslaw Szwajkowski Signed-off-by: Cherry Picker --- .../components/archetype-form/archetype-form.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/client/src/app/pages/archetypes/components/archetype-form/archetype-form.tsx b/client/src/app/pages/archetypes/components/archetype-form/archetype-form.tsx index 00658095a7..1945d547b8 100644 --- a/client/src/app/pages/archetypes/components/archetype-form/archetype-form.tsx +++ b/client/src/app/pages/archetypes/components/archetype-form/archetype-form.tsx @@ -149,18 +149,7 @@ const ArchetypeForm: React.FC = ({ ) .required(t("validation.required")), - tags: yup - .array() - .of(yup.object({ id: yup.number(), name: yup.string() })) - .min(1, ({ min }) => - t("validation.minCount", { - count: min, - type: t("terms.tag").toLocaleLowerCase(), - types: t("terms.tags").toLocaleLowerCase(), - }) - ) - .required(t("validation.required")), - + tags: yup.array().of(yup.object({ id: yup.number(), name: yup.string() })), stakeholders: yup .array() .of(yup.object({ id: yup.number(), name: yup.string() })), @@ -279,7 +268,6 @@ const ArchetypeForm: React.FC = ({ name="tags" label="Archetype Tags" fieldId="tags" - isRequired noResultsMessage={t("message.noResultsFoundTitle")} placeholderText={t("composed.selectMany", { what: t("terms.tags").toLowerCase(),