From ff6a1ffa4db9070db4ff3f907d5167f2a1acbfd1 Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Tue, 29 Aug 2023 16:35:11 +0800 Subject: [PATCH] fix(console): app creation quota limit should be displayed on create app form (#4402) --- .../src/pages/Applications/components/CreateForm/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/console/src/pages/Applications/components/CreateForm/index.tsx b/packages/console/src/pages/Applications/components/CreateForm/index.tsx index c3913968d..9ca901078 100644 --- a/packages/console/src/pages/Applications/components/CreateForm/index.tsx +++ b/packages/console/src/pages/Applications/components/CreateForm/index.tsx @@ -48,7 +48,7 @@ function CreateForm({ defaultCreateType, defaultCreateFrameworkName, onClose }: control, register, formState: { errors, isSubmitting }, - } = useForm(); + } = useForm({ defaultValues: { type: defaultCreateType } }); const { field: { onChange, value, name, ref },