From 144c7f6e3d97d584b1cf7540e479d43b5e6be769 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Tue, 10 Nov 2026 10:08:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8D=E7=A7=B0=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E6=97=B6=E7=94=A8=E7=AC=AC=E4=B8=80=E5=BC=A0=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=A1=AB=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/features/admin/SourcesView.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/features/admin/SourcesView.vue b/web/src/features/admin/SourcesView.vue index 9eba2d8..3ac5293 100644 --- a/web/src/features/admin/SourcesView.vue +++ b/web/src/features/admin/SourcesView.vue @@ -183,7 +183,10 @@ function lookup(tablename: string) { } function setPicked(names: string[]) { - chosen.value = names.map(lookup).filter((item): item is QueryTable => Boolean(item)); + const wasEmpty = chosen.value.length === 0; + const next = names.map(lookup).filter((item): item is QueryTable => Boolean(item)); + if (wasEmpty && next.length && !name.value.trim()) name.value = next[0].name; + chosen.value = next; } function removeTable(tablename: string) {