]> cat aescling's git repositories - mastodon.git/commitdiff
Insert polls in redux stores before statuses so it avoids crashes
authorThibG <thib@sitedethib.com>
Sun, 3 Mar 2019 22:44:52 +0000 (23:44 +0100)
committerThibaut Girka <thib@sitedethib.com>
Tue, 5 Mar 2019 20:35:03 +0000 (21:35 +0100)
Port 26c56d0c10ca036291d8b08b34f971f981217e8c to glitch-soc

app/javascript/flavours/glitch/actions/importer/index.js

index 13ad5d1e11d5b44472380fd3e0ca5eecd697cdc3..abadee8173fa849555e55f2f77469b2535432f33 100644 (file)
@@ -77,8 +77,8 @@ export function importFetchedStatuses(statuses) {
 
     statuses.forEach(processStatus);
 
+    dispatch(importPolls(polls));
     dispatch(importFetchedAccounts(accounts));
     dispatch(importStatuses(normalStatuses));
-    dispatch(importPolls(polls));
   };
 }