Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8d38c56

Browse files
committed
fix(ui): Configuration page fails to load
1 parent 0c92529 commit 8d38c56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /