Skip to content

Commit

Permalink
MAT-7174: Bugfix formik errors not displaying as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmcphillips committed May 6, 2024
1 parent 67558e4 commit 21d16aa
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/components/common/CreateNewLibraryDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,7 @@ const CreateNewLibraryDialog: React.FC<TestProps> = ({
"aria-required": true,
required: true,
}}
helperText={
(formik.touched["cqlLibraryName"] ||
focusedField === "cqlLibraryName") &&
(formikErrorHandler("cqlLibraryName") ||
formik.values.model === Model.QDM_5_6
? "Library name must start with an upper case letter, followed by alpha-numeric character(s) and must not contain spaces or other special characters except of underscore for QDM."
: "Library name must start with an upper case letter, followed by alpha-numeric character(s) and must not contain spaces or other special characters")
}
helperText={getFormikErrorMessage}
size="small"
error={
formik.touched.cqlLibraryName &&
Expand Down Expand Up @@ -261,6 +254,7 @@ const CreateNewLibraryDialog: React.FC<TestProps> = ({
/>
<Box />
</Box>
test
<Box sx={formRow}>
<TextArea
label="Description"
Expand Down

0 comments on commit 21d16aa

Please sign in to comment.