Skip to content

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

chore: render nullable column (#14185)

Liu Ji91fef06d63d2
diff --git a/frontend/src/components/ColumnDataTable/index.vue b/frontend/src/components/ColumnDataTable/index.vue
index 3ae0637be0..0d1eca91b5 100644
--- a/frontend/src/components/ColumnDataTable/index.vue
+++ b/frontend/src/components/ColumnDataTable/index.vue
@@ -11,7 +11,7 @@
<script lang="ts" setup>
import type { DataTableColumn } from "naive-ui";
-import { NDataTable } from "naive-ui";
+import { NCheckbox, NDataTable } from "naive-ui";
import type { PropType } from "vue";
import { computed } from "vue";
import { h } from "vue";
@@ -247,7 +247,10 @@ const columns = computed(() => {
resizable: true,
width: 140,
render: (column) => {
- return column.nullable;
+ return h(NCheckbox, {
+ checked: column.nullable,
+ readonly: true,
+ });
},
},
{