Skip to content

Commit

Permalink
fix(blue-print): confirm button enabled without selecting parent
Browse files Browse the repository at this point in the history
  • Loading branch information
MirzaHanan committed Sep 13, 2024
1 parent eddfbc3 commit 401d73a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
})

Expand Down

0 comments on commit 401d73a

Please sign in to comment.