Skip to content

Commit

Permalink
🐛 [backport release-0.5] Allow creating archetype without tags (#2047) (
Browse files Browse the repository at this point in the history
#2050)

Resolves: #1999
Backport-of: #2047

Signed-off-by: Radoslaw Szwajkowski <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
  • Loading branch information
konveyor-ci-bot[bot] authored Aug 5, 2024
1 parent 52a8564 commit dbbc801
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 dbbc801

Please sign in to comment.