For some reason it argues because of the empty string here <SelectItem value="">Unassigned</SelectItem>. I am using schadcn/ui, which is build on top of RadixUI so I decided to give it a go, so far this is the only issue, if someone could help me please to cope with it?
onValueChange: when assigning a value to assignedToUserId, make a condition: assignedToUserId: userId === âunassignedâ ? null : userId,
<Select.Item value=âunassignedâ>Unassigned</Select.Item>
So by default, assignedToUserId = âunassignedâ, and when we choose a user, it get
the userId.
Thank you. Itâs indeed solved the issue. However in the next sections of the course: We will encounter the problem with filtering the statuses, at this point this trick is not going to work I suppose. So I thought there is a reason why some people get such an error
Thank you for the solution. I would suggest you may need to update defaultValue={issue.assignedToUserId || "unassigned"} to show âUnassignedâ as default
For those who are interested to follow the course, if you pay good attention, Mosh installed @radix-ui/themes**@1.1.2**, that will resolve the problem. For some reason the maintainer had updated the radix-ui/theme package.