Skip to content

Commit

Permalink
Merge pull request #2134 from MirzaHanan/Confirm-Button-Disabled-With…
Browse files Browse the repository at this point in the history
…out-Select-Parent

Fixed [BluePrint]: `Create Type` Modal `Confirm` Button Enabled Without Selecting `Parent`
  • Loading branch information
Rassl authored Sep 24, 2024
2 parents 604348d + 401d73a commit e990e3b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,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 e990e3b

Please sign in to comment.