Skip to content

Commit

Permalink
[frontend] Fix Empty TAXII Ingester User Reverts to Previous User ins…
Browse files Browse the repository at this point in the history
…tead of System (#4813) (#4834)
  • Loading branch information
helene-nguyen authored Nov 8, 2023
1 parent d7841a1 commit 2b6a9a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ingestionRssValidation = (t) => Yup.object().shape({
object_marking_refs: Yup.array().nullable(),
report_types: Yup.array().nullable(),
created_by_ref: Yup.mixed().nullable(),
user_id: Yup.object().nullable(),
user_id: Yup.mixed().nullable(),
current_state_date: Yup.date()
.typeError(t('The value must be a datetime (yyyy-MM-dd hh:mm (a|p)m)'))
.nullable(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const ingestionTaxiiValidation = (t) => Yup.object().shape({
cert: Yup.string().nullable(),
key: Yup.string().nullable(),
ca: Yup.string().nullable(),
user_id: Yup.object().nullable(),
user_id: Yup.mixed().nullable(),
added_after_start: Yup.date()
.typeError(t('The value must be a datetime (yyyy-MM-dd hh:mm (a|p)m)'))
.nullable(),
Expand Down Expand Up @@ -149,6 +149,7 @@ const IngestionTaxiiEditionContainer = ({
'added_after_start',
]),
)(ingestionTaxii);

return (
<Drawer
title={t('Update a TAXII ingester')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const syncValidation = (t) => Yup.object().shape({
no_dependencies: Yup.bool(),
ssl_verify: Yup.bool(),
synchronized: Yup.bool(),
user_id: Yup.object().nullable(),
user_id: Yup.mixed().nullable(),
});

const SyncEditionContainer = ({ synchronizer }) => {
Expand Down

0 comments on commit 2b6a9a2

Please sign in to comment.