Remove sorting poll option weight
Fixes a bug where entered votes did not match to the order of poll options fixes #5125
This commit is contained in:
parent
d248f5fbc1
commit
3530b625d9
@ -219,8 +219,6 @@ export class AssignmentRepositoryService extends BaseIsAgendaItemAndListOfSpeake
|
||||
* @param originalPoll the original poll
|
||||
*/
|
||||
public async updateVotes(poll: Partial<AssignmentPoll>, originalPoll: ViewAssignmentPoll): Promise<void> {
|
||||
poll.options.sort((a, b) => a.weight - b.weight);
|
||||
|
||||
const votes = poll.options.map(option => {
|
||||
const voteObject = {};
|
||||
for (const vote of option.votes) {
|
||||
|
Loading…
Reference in New Issue
Block a user