Skip to content

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

chore: update toLowerCase when getting policy (#6977)

boojack383963d5291b
diff --git a/frontend/src/store/modules/v1/policy.ts b/frontend/src/store/modules/v1/policy.ts
index ec4884b427..a1bdb13d8f 100644
--- a/frontend/src/store/modules/v1/policy.ts
+++ b/frontend/src/store/modules/v1/policy.ts
@@ -132,7 +132,7 @@ export const usePolicyV1Store = defineStore("policy_v1", {
return this.getPolicyByName(name);
},
getPolicyByName(name: string) {
- return this.policyMapByName.get(name);
+ return this.policyMapByName.get(name.toLowerCase());
},
async createPolicy(parent: string, policy: Partial<Policy>) {
const createdPolicy = await policyServiceClient.createPolicy({