destroyOnClose unmounts the Form on close, disconnecting the useForm instance so validateFields throws on reopen. Replaced with afterOpenChange to reset fields without unmounting. Also moved setModalOpen(false) and reload() before message.success so that antd v5's static message API throwing outside an <App> context no longer prevents the modal from closing after a successful create or update.
Description
No description provided
Languages
TypeScript
98.9%
CSS
0.8%
Dockerfile
0.3%