Skip to content

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

fix: isSelected (#2742)

Liu Ji2e8ac310a00d
diff --git a/frontend/src/bbkit/BBSelect.vue b/frontend/src/bbkit/BBSelect.vue
index dae99a2c68..2517b59452 100644
--- a/frontend/src/bbkit/BBSelect.vue
+++ b/frontend/src/bbkit/BBSelect.vue
@@ -112,7 +112,6 @@ import {
} from "vue";
import { VBinder, VTarget, VFollower } from "vueuc";
import { onClickOutside, useElementBounding } from "@vueuse/core";
-import { isEmpty } from "lodash-es";
interface LocalState {
showMenu: boolean;
@@ -183,7 +182,11 @@ export default defineComponent({
});
const isSelected = computed(() => {
- return !isEmpty(state.selectedItem);
+ return (
+ state.selectedItem !== null &&
+ state.selectedItem !== undefined &&
+ state.selectedItem !== ""
+ );
});
watch(