Skip to content

Commit

Permalink
[frontend]TS issues (#7400)
Browse files Browse the repository at this point in the history
  • Loading branch information
CelineSebe committed Sep 26, 2024
1 parent 8c6dc7a commit d86660d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ const FeedCreation: FunctionComponent<FeedCreationFormProps> = (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 = () => {
Expand Down Expand Up @@ -634,7 +632,7 @@ const FeedCreation: FunctionComponent<FeedCreationFormProps> = (props) => {
>
{t_i18n('Cancel')}
</Button>
{isDuplicated && feed ? (
{isDuplicated ? (
<Button
variant="contained"
color="secondary"
Expand Down

0 comments on commit d86660d

Please sign in to comment.