File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
ui/packages/shared/pages/Configuration Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ export const Configuration = observer(
202202 // add options to formik field
203203 selectedPgOptions . forEach ( ( pg ) => {
204204 pg . addDefaultOptions . forEach ( ( addOption ) => {
205- if ( ! pgValue . includes ( addOption ) ) {
205+ if ( ! pgValue ? .includes ( addOption ) ) {
206206 const addOptionWithSpace = addOption + ' '
207207 formik . setFieldValue ( formikName , ( pgValue += addOptionWithSpace ) )
208208 }
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export const formatDockerImageArray = (type: string) => {
6363export const getImageType = ( imageUrl : string ) => {
6464 const postgresCustomImageType =
6565 imageUrl . includes ( extendedCustomImage ) &&
66- imageUrl . split ( `${ extendedCustomImage } -` ) [ 1 ] . split ( ':' ) [ 0 ]
66+ imageUrl . split ( `${ extendedCustomImage } -` ) [ 1 ] ? .split ( ':' ) [ 0 ]
6767
6868 if ( imageUrl . includes ( 'postgresai/extended-postgres' ) ) {
6969 return 'Generic Postgres'
You can’t perform that action at this time.
0 commit comments