frontend-rw #1

Merged
marcin merged 347 commits from frontend-rw into develop 2024-12-05 15:32:18 -08:00
Showing only changes of commit 9f51735099 - Show all commits

View file

@ -24,10 +24,12 @@ const fetchDraftStatuses = () =>
const accountUrl = getAccount(state, state.me as string)!.url;
return KVStore.getItem<Array<APIEntity>>(`drafts:${accountUrl}`).then((statuses) => {
dispatch<DraftStatusesFetchSuccessAction>({
type: DRAFT_STATUSES_FETCH_SUCCESS,
statuses,
});
if (statuses) {
dispatch<DraftStatusesFetchSuccessAction>({
type: DRAFT_STATUSES_FETCH_SUCCESS,
statuses,
});
}
}).catch(() => {});
};