mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
🐛 Keep selected participant id after update (#1171)
This commit is contained in:
parent
3758daf301
commit
5081af464c
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ export const VotingForm = ({ children }: React.PropsWithChildren) => {
|
||||||
|
|
||||||
form.reset({
|
form.reset({
|
||||||
mode: "view",
|
mode: "view",
|
||||||
participantId: undefined,
|
participantId: data.participantId,
|
||||||
votes: options.map((option) => ({
|
votes: options.map((option) => ({
|
||||||
optionId: option.id,
|
optionId: option.id,
|
||||||
})),
|
})),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue