Skip to content

Commit f1b905c

Browse files
committed
Fix load when datasource is undefined
1 parent 7948c8c commit f1b905c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dataconnect/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export function toDatasource(
184184
locationId: string,
185185
ds: DatasourceYaml,
186186
): Datasource {
187-
if (ds.postgresql) {
187+
if (ds?.postgresql) {
188188
return {
189189
postgresql: {
190190
database: ds.postgresql.database,

0 commit comments

Comments
 (0)