From 401d73ad37a3ad121df723c90e1c014d2c2f3f76 Mon Sep 17 00:00:00 2001 From: Mirza Hanan Date: Fri, 13 Sep 2024 06:26:00 +0500 Subject: [PATCH] fix(blue-print): confirm button enabled without selecting parent --- .../ModalsContainer/BlueprintModal/Body/Editor/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx index 0fd65b448..47299e223 100644 --- a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx +++ b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx @@ -367,11 +367,12 @@ export const Editor = ({ isMatch const isValidType = !!values.type?.trim() + const isValidParent = !!values.parent?.trim() setSubmitDisabled( selectedSchema ? loading || !isChanged || !isValidType || displayParentError - : loading || displayParentError || !isValidType, + : loading || displayParentError || !isValidType || !isValidParent, ) })