Skip to content

Commit 88590f1

Browse files
authored
fix: prevent sorting poll options in place (#2699)
1 parent 234eafc commit 88590f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Poll/PollActions/PollResults/PollResults.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type PollStateSelectorReturnValue = {
1414
};
1515
const pollStateSelector = (nextValue: PollState): PollStateSelectorReturnValue => ({
1616
name: nextValue.name,
17-
options: nextValue.options,
17+
options: [...nextValue.options],
1818
vote_counts_by_option: nextValue.vote_counts_by_option,
1919
});
2020

0 commit comments

Comments
 (0)