1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-27 23:06:29 -04: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
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ function Parse() {
const onClearPress = useCallback(() => {
setTitle('');
dispatch(fetch({ title: '' }));
dispatch(clear());
}, [setTitle, dispatch]);
useEffect(
+1 -1
View File
@@ -43,7 +43,7 @@ function ParseModalContent(props: ParseModalContentProps) {
const onClearPress = useCallback(() => {
setTitle('');
dispatch(fetch({ title: '' }));
dispatch(clear());
}, [setTitle, dispatch]);
useEffect(
@@ -55,6 +55,8 @@ export const actionHandlers = handleThunks({
}
parseTimeout = window.setTimeout(async () => {
dispatch(set({ section, isFetching: true }));
if (abortCurrentRequest) {
abortCurrentRequest();
}