From e31450e8adf502a63161d3296ac0302950634639 Mon Sep 17 00:00:00 2001 From: ThibG Date: Sun, 3 Mar 2019 23:44:52 +0100 Subject: [PATCH] Insert polls in redux stores before statuses so it avoids crashes Port 6d08fd5170c91131c8d5aa0f7863954aca75c2fa to glitch-soc --- app/javascript/flavours/glitch/actions/importer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/actions/importer/index.js b/app/javascript/flavours/glitch/actions/importer/index.js index 13ad5d1e11..abadee8173 100644 --- a/app/javascript/flavours/glitch/actions/importer/index.js +++ b/app/javascript/flavours/glitch/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)); }; }