diff --git a/app/soapbox/actions/instance.ts b/app/soapbox/actions/instance.ts index 150e9cc86..1c826e3d2 100644 --- a/app/soapbox/actions/instance.ts +++ b/app/soapbox/actions/instance.ts @@ -59,6 +59,7 @@ export function fetchInstance() { return api(getState).get('/api/v1/instance').then(({ data: instance }: { data: Record }) => { dispatch({ type: INSTANCE_FETCH_SUCCESS, instance }); if (needsNodeinfo(instance)) { + // @ts-ignore: ??? dispatch(fetchNodeinfo()); // Pleroma < 2.1 backwards compatibility } }).catch(error => { @@ -73,7 +74,9 @@ export function loadInstance() { return (dispatch: AppDispatch, getState: () => RootState) => { const host = getHost(getState()); + // @ts-ignore: ??? return dispatch(rememberInstance(host)).finally(() => { + // @ts-ignore: ??? return dispatch(fetchInstance()); }); }; diff --git a/app/soapbox/features/ui/components/who-to-follow-panel.tsx b/app/soapbox/features/ui/components/who-to-follow-panel.tsx index 09b55999a..d55f04585 100644 --- a/app/soapbox/features/ui/components/who-to-follow-panel.tsx +++ b/app/soapbox/features/ui/components/who-to-follow-panel.tsx @@ -46,6 +46,7 @@ const WhoToFollowPanel = ({ limit }: IWhoToFollowPanel) => { {suggestionsToRender.map((suggestion: ImmutableMap) => ( , but it isn't id={suggestion.get('account')} actionIcon={require('@tabler/icons/icons/x.svg')} actionTitle={intl.formatMessage(messages.dismissSuggestion)} diff --git a/app/soapbox/reducers/index.ts b/app/soapbox/reducers/index.ts index 19d9930c0..4e54ec19f 100644 --- a/app/soapbox/reducers/index.ts +++ b/app/soapbox/reducers/index.ts @@ -128,6 +128,7 @@ export const StateRecord = ImmutableRecord( }, {}), ); +// @ts-ignore: This type is fine but TS thinks it's wrong const appReducer = combineReducers(reducers, StateRecord); // Clear the state (mostly) when the user logs out