Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
cloneDeep the INIT_DATA_SOURCE otherwise its value will be changed by reference.
Tianzhou Chen8f03b1ee9282
diff --git a/frontend/src/views/InstanceDetail.vue b/frontend/src/views/InstanceDetail.vueindex ce08c0866f..a4badd3f61 100644--- a/frontend/src/views/InstanceDetail.vue+++ b/frontend/src/views/InstanceDetail.vue@@ -401,7 +401,7 @@ export default {environmentId: "",host: "127.0.0.1",};- state.adminDataSource = INIT_DATA_SOURCE;+ state.adminDataSource = cloneDeep(INIT_DATA_SOURCE);} else {// Instance is already fetched remotely during routing, so we can just// use store.getters here.@@ -412,7 +412,7 @@ export default {// On the other hand, we need to fetch data source remotely first and// because the operation is async, we need to have a init object to avoid// adding v-if="state.adminDataSource" guard- assignAdminDataSource(INIT_DATA_SOURCE);+ assignAdminDataSource(cloneDeep(INIT_DATA_SOURCE));store.dispatch("dataSource/fetchDataSourceListByInstanceId",