From 26c56d0c10ca036291d8b08b34f971f981217e8c Mon Sep 17 00:00:00 2001
From: ThibG <thib@sitedethib.com>
Date: Sun, 3 Mar 2019 23:44:52 +0100
Subject: [PATCH] Insert polls in redux stores before statuses so it avoids
 crashes (#10140)

---
 app/javascript/mastodon/actions/importer/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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));
   };
 }