mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 08:03:40 +08:00
Remove debugging code.
This commit is contained in:
parent
3c28d94706
commit
1bc87bca65
|
@ -99,7 +99,7 @@ createWidget('discourse-poll-voters', {
|
||||||
state.loaded = 'loaded';
|
state.loaded = 'loaded';
|
||||||
state.offset += 1;
|
state.offset += 1;
|
||||||
|
|
||||||
const pollResult = result[attrs.pollName]
|
const pollResult = result[attrs.pollName];
|
||||||
const newVoters = attrs.pollType === 'number' ? pollResult : pollResult[attrs.optionId];
|
const newVoters = attrs.pollType === 'number' ? pollResult : pollResult[attrs.optionId];
|
||||||
state.pollVoters = state.pollVoters.concat(newVoters);
|
state.pollVoters = state.pollVoters.concat(newVoters);
|
||||||
|
|
||||||
|
@ -118,8 +118,6 @@ createWidget('discourse-poll-voters', {
|
||||||
|
|
||||||
console.log(state.pollVoters);
|
console.log(state.pollVoters);
|
||||||
const contents = state.pollVoters.map(user => {
|
const contents = state.pollVoters.map(user => {
|
||||||
if (user === undefined) debugger;
|
|
||||||
|
|
||||||
return h('li', [avatarFor('tiny', {
|
return h('li', [avatarFor('tiny', {
|
||||||
username: user.username,
|
username: user.username,
|
||||||
template: user.avatar_template
|
template: user.avatar_template
|
||||||
|
|
Loading…
Reference in New Issue
Block a user