fix: incorrect week-start input value (#16057)
* fix: incorrect week start input value * fix the issue --------- Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
1 parent
100136aae7
commit
9953d73444
1 file changed
+3
-1
@@ -96,7 +96,9 @@ export const UserForm = ({
|
||||
timeZone: defaultValues?.timeZone || "",
|
||||
weekStart: {
|
||||
value: defaultValues?.weekStart || weekStartOptions[0].value,
|
||||
label: nameOfDay(localeProp, defaultValues?.weekStart === "Sunday" ? 0 : 1),
|
||||
label:
|
||||
weekStartOptions.find((option) => option.value === defaultValues?.weekStart)?.label ||
|
||||
weekStartOptions[0].label,
|
||||
},
|
||||
role: {
|
||||
value: defaultValues?.role || userRoleOptions[0].value,
|
||||
|
||||
Reference in new issue
Block a user