File tree 2 files changed +2
-2
lines changed
ui/packages/shared/pages/Configuration
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(
202
202
// add options to formik field
203
203
selectedPgOptions . forEach ( ( pg ) => {
204
204
pg . addDefaultOptions . forEach ( ( addOption ) => {
205
- if ( ! pgValue . includes ( addOption ) ) {
205
+ if ( ! pgValue ? .includes ( addOption ) ) {
206
206
const addOptionWithSpace = addOption + ' '
207
207
formik . setFieldValue ( formikName , ( pgValue += addOptionWithSpace ) )
208
208
}
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export const formatDockerImageArray = (type: string) => {
63
63
export const getImageType = ( imageUrl : string ) => {
64
64
const postgresCustomImageType =
65
65
imageUrl . includes ( extendedCustomImage ) &&
66
- imageUrl . split ( `${ extendedCustomImage } -` ) [ 1 ] . split ( ':' ) [ 0 ]
66
+ imageUrl . split ( `${ extendedCustomImage } -` ) [ 1 ] ? .split ( ':' ) [ 0 ]
67
67
68
68
if ( imageUrl . includes ( 'postgresai/extended-postgres' ) ) {
69
69
return 'Generic Postgres'
You can’t perform that action at this time.
0 commit comments