mirror of
https://github.com/Sonarr/Sonarr
synced 2026-01-26 17:32:27 +01:00
Fix fetching indexers for release profiles
This commit is contained in:
parent
cf593b1f5d
commit
c60a978eb8
1 changed files with 8 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { useSelector } from 'react-redux';
|
||||
import React, { useEffect } from 'react';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
import AppState from 'App/State/AppState';
|
||||
import Card from 'Components/Card';
|
||||
import FieldSet from 'Components/FieldSet';
|
||||
|
|
@ -7,6 +7,7 @@ import Icon from 'Components/Icon';
|
|||
import PageSectionContent from 'Components/Page/PageSectionContent';
|
||||
import useModalOpenState from 'Helpers/Hooks/useModalOpenState';
|
||||
import { icons } from 'Helpers/Props';
|
||||
import { fetchIndexers } from 'Store/Actions/settingsActions';
|
||||
import { useTagList } from 'Tags/useTags';
|
||||
import translate from 'Utilities/String/translate';
|
||||
import EditReleaseProfileModal from './EditReleaseProfileModal';
|
||||
|
|
@ -15,6 +16,7 @@ import { useReleaseProfiles } from './useReleaseProfiles';
|
|||
import styles from './ReleaseProfiles.css';
|
||||
|
||||
function ReleaseProfiles() {
|
||||
const dispatch = useDispatch();
|
||||
const { data, isFetching, isFetched, error } = useReleaseProfiles();
|
||||
|
||||
const tagList = useTagList();
|
||||
|
|
@ -28,6 +30,10 @@ function ReleaseProfiles() {
|
|||
setAddReleaseProfileModalClosed,
|
||||
] = useModalOpenState(false);
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(fetchIndexers());
|
||||
}, [dispatch]);
|
||||
|
||||
return (
|
||||
<FieldSet legend={translate('ReleaseProfiles')}>
|
||||
<PageSectionContent
|
||||
|
|
|
|||
Loading…
Reference in a new issue