Skip to content

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

fix: update semantic type (#15572)

ecmadaoa7fd8df1fe5b
diff --git a/frontend/src/components/SensitiveData/SemanticTypesView.vue b/frontend/src/components/SensitiveData/SemanticTypesView.vue
index 880173fee7..32afe7408f 100644
--- a/frontend/src/components/SensitiveData/SemanticTypesView.vue
+++ b/frontend/src/components/SensitiveData/SemanticTypesView.vue
@@ -113,7 +113,9 @@ const onRemove = async (index: number) => {
name: "bb.workspace.semantic-types",
value: {
semanticTypeSettingValue: {
- types: state.semanticItemList.map((data) => data.item),
+ types: state.semanticItemList
+ .filter((data) => data.mode === "NORMAL")
+ .map((data) => data.item),
},
},
});
@@ -134,7 +136,9 @@ const onConfirm = async (index: number) => {
};
await onUpsert(
- state.semanticItemList.map((data) => data.item),
+ state.semanticItemList
+ .filter((data) => data.mode === "NORMAL")
+ .map((data) => data.item),
t(`common.${item.mode === "CREATE" ? "created" : "updated"}`)
);
};