1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-26 04:33:01 +01:00

Fixed: Clearing parse testing

This commit is contained in:
Bogdan 2023-07-12 03:10:30 +03:00 committed by GitHub
parent 9854884ed3
commit dc302bfaa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,7 @@ function Parse() {
const onClearPress = useCallback(() => {
setTitle('');
dispatch(fetch({ title: '' }));
dispatch(clear());
}, [setTitle, dispatch]);
useEffect(

View File

@ -43,7 +43,7 @@ function ParseModalContent(props: ParseModalContentProps) {
const onClearPress = useCallback(() => {
setTitle('');
dispatch(fetch({ title: '' }));
dispatch(clear());
}, [setTitle, dispatch]);
useEffect(

View File

@ -55,6 +55,8 @@ export const actionHandlers = handleThunks({
}
parseTimeout = window.setTimeout(async () => {
dispatch(set({ section, isFetching: true }));
if (abortCurrentRequest) {
abortCurrentRequest();
}