Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Add the [] in case includedList is undefined. This could happen when there is no related objects.
天舟bf530a196451
diff --git a/frontend/src/store/modules/dataSource.ts b/frontend/src/store/modules/dataSource.tsindex 6e41ebbcc7..dff2cb5196 100644--- a/frontend/src/store/modules/dataSource.ts+++ b/frontend/src/store/modules/dataSource.ts@@ -35,7 +35,7 @@ function convert();let instance: Instance = unknown("INSTANCE") as Instance;- for (const item of includedList) {+ for (const item of includedList || []) {if (item.type == "instance" && item.id == instanceId) {instance = rootGetters["instance/convert"](item);break;@@ -43,7 +43,7 @@ function convert(}let database: Database = unknown("DATABASE") as Database;- for (const item of includedList) {+ for (const item of includedList || []) {if (item.type == "database" && item.id == databaseId) {database = rootGetters["database/convert"](item);break;diff --git a/frontend/src/store/modules/database.ts b/frontend/src/store/modules/database.tsindex 5475619ce9..470acbfbf4 100644--- a/frontend/src/store/modules/database.ts+++ b/frontend/src/store/modules/database.ts@@ -45,7 +45,7 @@ function convert(dataSourceList.push(dataSource);}- for (const item of includedList) {+ for (const item of includedList || []) {if (item.type == "instance" && item.id == instanceId) {instance = rootGetters["instance/convert"](item);}@@ -67,7 +67,7 @@ function convert(>),};- for (const item of includedList) {+ for (const item of includedList || []) {if (item.type == "data-source" &&(item.relationships!.database.data as ResourceIdentifier).id ==