Fix client import form state (#2621)

This commit is contained in:
Jon Koops 2022-05-11 11:46:05 +02:00 committed by GitHub
parent 1eb33007c4
commit 9b0af12bd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ export default function ImportForm() {
const history = useHistory();
const adminClient = useAdminClient();
const { realm } = useRealm();
const form = useForm<ClientRepresentation>();
const form = useForm<ClientRepresentation>({ shouldUnregister: false });
const { register, handleSubmit, setValue } = form;
const [imported, setImported] = useState<ClientRepresentation>({});