about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-03 23:44:52 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-03-03 23:44:52 +0100
commit26c56d0c10ca036291d8b08b34f971f981217e8c (patch)
treed1c36f5842d505fe5c1e87a3166f6f4da10d607d /app/javascript
parent8fe93b0701ea754fe8727b1d4ef11f7a33903f81 (diff)
Insert polls in redux stores before statuses so it avoids crashes (#10140)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/actions/importer/index.js2
1 files changed, 1 insertions, 1 deletions
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));
   };
 }