Skip to content

Commit

Permalink
[frontend] TAXII push requirements message improvement (#8932)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-julien committed Jan 8, 2025
1 parent b293e2e commit 41380d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const ingestionTaxiiCollectionCreationValidation = (t) => Yup.object().shape({
description: Yup.string().nullable(),
user_id: Yup.object().nullable(),
confidence_to_score: Yup.bool().nullable(),
authorized_members: Yup.array().required().min(1),
authorized_members: Yup.array().required(t('This field is required')).min(1, t('This field is required')),
});

const IngestionTaxiiCollectionCreation = (props) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const ingestionTaxiiCollectionValidation = (t) => Yup.object().shape({
description: Yup.string().nullable(),
user_id: Yup.mixed().nullable(),
confidence_to_score: Yup.bool().nullable(),
authorized_members: Yup.array().required().min(1),
authorized_members: Yup.array().required(t('This field is required')).min(1, t('This field is required')),
});

const IngestionTaxiiCollectionEditionContainer = ({
Expand Down

0 comments on commit 41380d2

Please sign in to comment.