fix: TS error related to non-existant ReasonEnum
This commit is contained in:
1 parent
a775bec902
commit
8e26882b2d
1 file changed
+2
-1
@@ -188,7 +188,8 @@ export const ReassignDialog = ({
|
||||
<Form form={form} handleSubmit={handleSubmit} ref={animationParentRef}>
|
||||
<RadioArea.Group
|
||||
onValueChange={(val) => {
|
||||
form.setValue("reassignType", val as ReasonEnum);
|
||||
const reassignType: ReassignType = z.nativeEnum(ReassignType).parse(val);
|
||||
form.setValue("reassignType", reassignType);
|
||||
}}
|
||||
defaultValue={bookingFromRoutingForm ? ReassignType.TEAM_MEMBER : ReassignType.ROUND_ROBIN}
|
||||
className="mt-1 flex flex-col gap-4">
|
||||
|
||||
Reference in new issue
Block a user