Skip to content

Commit

Permalink
🐛 Allow creating archetype without tags (#2047)
Browse files Browse the repository at this point in the history
Resolves: #1999

Signed-off-by: Radoslaw Szwajkowski <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
  • Loading branch information
rszwajko authored and web-flow committed Aug 5, 2024
1 parent 52a8564 commit bd4e347
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,7 @@ const ArchetypeForm: React.FC<ArchetypeFormProps> = ({
)
.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() })),
Expand Down Expand Up @@ -279,7 +268,6 @@ const ArchetypeForm: React.FC<ArchetypeFormProps> = ({
name="tags"
label="Archetype Tags"
fieldId="tags"
isRequired
noResultsMessage={t("message.noResultsFoundTitle")}
placeholderText={t("composed.selectMany", {
what: t("terms.tags").toLowerCase(),
Expand Down

0 comments on commit bd4e347

Please sign in to comment.