Skip to content

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

chore: fix enum of plan check run type (#16776)

boojack88dc754e3bbb
diff --git a/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue b/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
index c363ab4990..764bf0c6ec 100644
--- a/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
+++ b/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
@@ -82,9 +82,9 @@
:is="getCheckTypeIcon(checkType)"
class="w-5 h-5"
/>
- <span class="font-medium">{{
- getCheckTypeLabel(checkType)
- }}</span>
+ <span class="font-medium">
+ {{ getCheckTypeLabel(checkType) }}
+ </span>
<span class="text-control-light"
>({{ checkRuns.length }})</span
>
@@ -168,7 +168,10 @@ import {
pushNotification,
extractUserId,
} from "@/store";
-import { RunPlanChecksRequestSchema } from "@/types/proto-es/v1/plan_service_pb";
+import {
+ PlanCheckRun_Type,
+ RunPlanChecksRequestSchema,
+} from "@/types/proto-es/v1/plan_service_pb";
import {
PlanCheckRun_Result_Status,
type PlanCheckRun,
@@ -242,7 +245,7 @@ const drawerCheckRunsByType = computed(() => {
const groups = new Map<string, PlanCheckRun[]>();
for (const checkRun of drawerCheckRuns.value) {
- const type = String(checkRun.type);
+ const type = PlanCheckRun_Type[checkRun.type];
if (!groups.has(type)) {
groups.set(type, []);
}