diff --git a/opencti-platform/opencti-front/src/private/components/data/feeds/FeedCreation.tsx b/opencti-platform/opencti-front/src/private/components/data/feeds/FeedCreation.tsx index bc9d1114459db..db440d890c4d2 100644 --- a/opencti-platform/opencti-front/src/private/components/data/feeds/FeedCreation.tsx +++ b/opencti-platform/opencti-front/src/private/components/data/feeds/FeedCreation.tsx @@ -174,9 +174,7 @@ const FeedCreation: FunctionComponent = (props) => { })) : []; - // TODO: typing this state properly implies deep refactoring - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const [feedAttributes, setFeedAttributes] = useState<{ [key: string]: any }>({ 0: {} }); + const [feedAttributes, setFeedAttributes] = useState(feedAttributesInitialState); const { ignoredAttributesInFeeds } = useAttributes(); const handleClose = () => { @@ -634,7 +632,7 @@ const FeedCreation: FunctionComponent = (props) => { > {t_i18n('Cancel')} - {isDuplicated && feed ? ( + {isDuplicated ? (