Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: instance environment table (#15833)

p0nya14b90a6b658
diff --git a/frontend/src/store/modules/v1/environment.ts b/frontend/src/store/modules/v1/environment.ts
index fb0110ef78..4c1c82b2bc 100644
--- a/frontend/src/store/modules/v1/environment.ts
+++ b/frontend/src/store/modules/v1/environment.ts
@@ -190,12 +190,13 @@ export const useEnvironmentV1Store = defineStore("environment_v1", {
name: string,
silent = false
): Promise<Environment | undefined> {
- const cachedData = this.environmentMapById.get(name);
+ const id = name.replace(environmentNamePrefix, "");
+ const cachedData = this.environmentMapById.get(id);
if (cachedData) {
return cachedData;
}
await this.fetchEnvironments(false, silent);
- const environment = this.environmentMapById.get(name);
+ const environment = this.environmentMapById.get(id);
return environment;
},
getEnvironmentByName(name: string) {