Skip to content

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

fix: enum to string (#16932)

ecmadaoc48fb63093a8
diff --git a/frontend/src/components/CustomApproval/Settings/components/common/utils.ts b/frontend/src/components/CustomApproval/Settings/components/common/utils.ts
index 418d1c2ff1..a7c4d29f0b 100644
--- a/frontend/src/components/CustomApproval/Settings/components/common/utils.ts
+++ b/frontend/src/components/CustomApproval/Settings/components/common/utils.ts
@@ -17,6 +17,7 @@ import {
useSupportedSourceList,
type ComposedProject,
} from "@/types";
+import { Engine } from "@/types/proto-es/v1/common_pb";
import type { Risk } from "@/types/proto-es/v1/risk_service_pb";
import { Risk_Source } from "@/types/proto-es/v1/risk_service_pb";
import {
@@ -178,7 +179,7 @@ export const getProjectIdOptions = (projects: ComposedProject[]) => {
const getDBEndingOptions = () => {
return supportedEngineV1List().map<SelectOption>((type) => ({
label: engineNameV1(type),
- value: type,
+ value: Engine[type],
}));
};
@@ -192,7 +193,7 @@ const getLevelOptions = () => {
const getSourceOptions = () => {
return useSupportedSourceList().value.map<SelectOption>((source) => ({
label: Risk_Source[source],
- value: source,
+ value: Risk_Source[source],
}));
};