Skip to content

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

chore: update local state correctly (#7623)

Liu Ji914d6d7a6fd0
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
index 3138c42097..e35a7a0252 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
@@ -11,7 +11,7 @@
size="small"
type="text"
:placeholder="t('sql-editor.search-results')"
- @update:value="debouncedUpdateKeyword"
+ @update:value="updateKeyword"
>
<template #prefix>
<heroicons-outline:search class="h-5 w-5 text-gray-300" />
@@ -240,6 +240,10 @@ const allowToExportData = computed(() => {
const debouncedUpdateKeyword = useDebounceFn((value: string) => {
keyword.value = value;
}, 200);
+const updateKeyword = (value: string) => {
+ state.search = value;
+ debouncedUpdateKeyword(value);
+};
const columns = computed(() => {
const columns = props.result.columnNames;