Skip to content

Commit 5213026

Browse files
ClearlyClaireGargron
authored andcommitted
Insert polls in redux stores before statuses so it avoids crashes (mastodon#10140)
1 parent 3f15d5b commit 5213026

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • app/javascript/mastodon/actions/importer

app/javascript/mastodon/actions/importer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export function importFetchedStatuses(statuses) {
7777

7878
statuses.forEach(processStatus);
7979

80+
dispatch(importPolls(polls));
8081
dispatch(importFetchedAccounts(accounts));
8182
dispatch(importStatuses(normalStatuses));
82-
dispatch(importPolls(polls));
8383
};
8484
}

0 commit comments

Comments
 (0)