Skip to content

Commit ae60dc5

Browse files
committed
Merge branch '479-dle-release-ui-bug' into 'master'
fix(ui): Configuration page fails to load Closes #479 See merge request postgres-ai/database-lab!663
2 parents 0c92529 + 8d38c56 commit ae60dc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/packages/shared/pages/Configuration/index.tsx

+1-1
Original file line numberDiff line numberDiff 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
}

ui/packages/shared/pages/Configuration/utils/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const formatDockerImageArray = (type: string) => {
6363
export 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'

0 commit comments

Comments
 (0)