From 9b0af12bd6a43a7012db17563cb47e065522a73a Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Wed, 11 May 2022 11:46:05 +0200 Subject: [PATCH] Fix client import form state (#2621) --- src/clients/import/ImportForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clients/import/ImportForm.tsx b/src/clients/import/ImportForm.tsx index 1472b2537e..742b5ae139 100644 --- a/src/clients/import/ImportForm.tsx +++ b/src/clients/import/ImportForm.tsx @@ -28,7 +28,7 @@ export default function ImportForm() { const history = useHistory(); const adminClient = useAdminClient(); const { realm } = useRealm(); - const form = useForm(); + const form = useForm({ shouldUnregister: false }); const { register, handleSubmit, setValue } = form; const [imported, setImported] = useState({});