mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:38:36 -06:00
FIX: Don't load poll results while already loading
This commit is contained in:
parent
0a78ae739d
commit
e3301cd0c8
@ -78,6 +78,7 @@ createWidget('discourse-poll-voters', {
|
||||
|
||||
fetchVoters() {
|
||||
const { attrs, state } = this;
|
||||
if (state.loaded === 'loading') { return; }
|
||||
|
||||
const { voterIds } = attrs;
|
||||
if (!voterIds.length) { return; }
|
||||
|
Loading…
Reference in New Issue
Block a user