We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b763308 commit f58a3daCopy full SHA for f58a3da
apps/web/src/features/admin/components/UpdateUserForm.tsx
@@ -40,7 +40,7 @@ export type UpdateUserFormInputData = {
40
groupOptions: {
41
[id: string]: string;
42
};
43
- initialValues?: FormTypes.PartialNullableData<UpdateUserFormData>;
+ initialValues: FormTypes.PartialNullableData<UpdateUserFormData>;
44
45
46
export const UpdateUserForm: React.FC<{
@@ -170,6 +170,7 @@ export const UpdateUserForm: React.FC<{
170
}
171
]}
172
initialValues={initialValues}
173
+ key={JSON.stringify(initialValues)}
174
submitBtnLabel={t('core.save')}
175
validationSchema={$UpdateUserFormData}
176
onSubmit={onSubmit}
0 commit comments