From: ThibG Date: Sun, 3 Mar 2019 22:44:52 +0000 (+0100) Subject: Insert polls in redux stores before statuses so it avoids crashes (#10140) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=26c56d0c10ca036291d8b08b34f971f981217e8c;p=mastodon.git Insert polls in redux stores before statuses so it avoids crashes (#10140) --- diff --git a/app/javascript/mastodon/actions/importer/index.js b/app/javascript/mastodon/actions/importer/index.js index 13ad5d1e1..abadee817 100644 --- a/app/javascript/mastodon/actions/importer/index.js +++ b/app/javascript/mastodon/actions/importer/index.js @@ -77,8 +77,8 @@ export function importFetchedStatuses(statuses) { statuses.forEach(processStatus); + dispatch(importPolls(polls)); dispatch(importFetchedAccounts(accounts)); dispatch(importStatuses(normalStatuses)); - dispatch(importPolls(polls)); }; }