FIX: Don't load poll results while already loading

This commit is contained in:
Robin Ward 2016-12-21 21:26:57 -05:00
parent 0a78ae739d
commit e3301cd0c8

View File

@ -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; }