@ -105,7 +105,6 @@ const editStatus = (statusId: string) => (dispatch: AppDispatch, getState: () =>
|
||||
dispatch(openModal('COMPOSE'));
|
||||
}).catch(error => {
|
||||
dispatch({ type: STATUS_FETCH_SOURCE_FAIL, error });
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -73,7 +73,6 @@ const LocationSearch: React.FC<ILocationSearch> = ({ onSelected }) => {
|
||||
setLocationIds(ImmutableOrderedSet(locationIds));
|
||||
})
|
||||
.catch(noOp);
|
||||
|
||||
}, 900, { leading: true, trailing: true }), []);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@ -52,7 +52,6 @@ const ScrollTopButton: React.FC<IScrollTopButton> = ({
|
||||
|
||||
setScrolled(scrollTop > threshold);
|
||||
setScrolledTop(scrollTop <= autoloadThreshold);
|
||||
|
||||
}, 150, { trailing: true }), [threshold, autoloadThreshold]);
|
||||
|
||||
/** Scroll to top and trigger `onClick`. */
|
||||
|
||||
@ -181,7 +181,6 @@ const RegistrationForm: React.FC<IRegistrationForm> = ({ inviteToken }) => {
|
||||
setUsernameUnavailable(false);
|
||||
}
|
||||
});
|
||||
|
||||
}, 1000, { trailing: true }), []);
|
||||
|
||||
const onSubmit: React.FormEventHandler = () => {
|
||||
|
||||
@ -144,7 +144,6 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
|
||||
dispatch(submitCompose(id, { history })).then(() => {
|
||||
editorRef.current?.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined);
|
||||
}).catch(() => {});
|
||||
|
||||
};
|
||||
|
||||
const onSuggestionsClearRequested = () => {
|
||||
|
||||
Reference in New Issue
Block a user