mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
FIX: Don't load poll results while already loading
This commit is contained in:
@ -78,6 +78,7 @@ createWidget('discourse-poll-voters', {
|
|||||||
|
|
||||||
fetchVoters() {
|
fetchVoters() {
|
||||||
const { attrs, state } = this;
|
const { attrs, state } = this;
|
||||||
|
if (state.loaded === 'loading') { return; }
|
||||||
|
|
||||||
const { voterIds } = attrs;
|
const { voterIds } = attrs;
|
||||||
if (!voterIds.length) { return; }
|
if (!voterIds.length) { return; }
|
||||||
|
Reference in New Issue
Block a user