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:
parent
9854884ed3
commit
dc302bfaa8
@ -36,7 +36,7 @@ function Parse() {
|
||||
|
||||
const onClearPress = useCallback(() => {
|
||||
setTitle('');
|
||||
dispatch(fetch({ title: '' }));
|
||||
dispatch(clear());
|
||||
}, [setTitle, dispatch]);
|
||||
|
||||
useEffect(
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user