Skip to content

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

Fix the environment tab filter list and use stage.environmentId as the value to compare against the applied environment filter

Tianzhou Chen4c3a9afb63d0
diff --git a/frontend/src/components/EnvironmentTabFilter.vue b/frontend/src/components/EnvironmentTabFilter.vue
index 4a7389b867..b6ff7c20af 100644
--- a/frontend/src/components/EnvironmentTabFilter.vue
+++ b/frontend/src/components/EnvironmentTabFilter.vue
@@ -48,7 +48,7 @@ export default {
state.environmentList = cloneDeep(list).reverse();
state.tabList = [
"All",
- ...list.map((environment) => {
+ ...state.environmentList.map((environment) => {
return environment.attributes.name;
}),
];
diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue
index 00780f2f15..44b94f041f 100644
--- a/frontend/src/views/Home.vue
+++ b/frontend/src/views/Home.vue
@@ -109,7 +109,7 @@ export default {
const stage = activeStage(task);
return (
stage.type === "ENVIRONMENT" &&
- stage.id == state.selectedEnvironment.id
+ stage.environmentId == state.selectedEnvironment.id
);
}
return false;