Skip to content

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

fix: remove unnecessary empty view (#18483)

ecmadao109c7f76b569
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
index d360301b26..f53ee0e358 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
@@ -119,11 +119,6 @@
:search="state.searchParams"
@toggle-sort="toggleSort"
/>
- <NEmpty v-if="rows.length === 0">
- <template #extra>
- {{ $t("sql-editor.no-data-available") }}
- </template>
- </NEmpty>
<div class="absolute bottom-2 right-4 flex items-end gap-x-2">
<div v-if="state.searchCandidateRowIndexs.length > 0" class="flex flex-row gap-x-2 border shadow rounded bg-white py-1 px-2">
@@ -237,7 +232,7 @@
import { create } from "@bufbuild/protobuf";
import { isEmpty } from "lodash-es";
import { ArrowDownIcon, ArrowUpIcon, XIcon } from "lucide-vue-next";
-import { NButton, NEmpty, NFormItem, NSwitch, NTooltip } from "naive-ui";
+import { NButton, NFormItem, NSwitch, NTooltip } from "naive-ui";
import { v4 as uuidv4 } from "uuid";
import { computed, nextTick, reactive, ref, watch } from "vue";
import { useI18n } from "vue-i18n";