From 59107463dca16f4de5dd0eae8f32d0983e6e45a6 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Sat, 13 Jun 2026 13:07:37 +0800 Subject: [PATCH] fix: redis sidebar show total key count only --- apps/desktop/src/stores/connectionStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/stores/connectionStore.ts b/apps/desktop/src/stores/connectionStore.ts index 9b8de13759..dc52be7cd2 100644 --- a/apps/desktop/src/stores/connectionStore.ts +++ b/apps/desktop/src/stores/connectionStore.ts @@ -75,9 +75,9 @@ interface PersistedTreeChildrenLoadResult { type BeforeConnectHandler = (config: ConnectionConfig) => Promise; -function redisDbLabel(db: number, loadedKeyCount?: number, totalKeyCount?: number): string { +function redisDbLabel(db: number, _loadedKeyCount?: number, totalKeyCount?: number): string { if (totalKeyCount == null) return `db${db}`; - return `db${db} (${loadedKeyCount ?? 0}/${totalKeyCount})`; + return `db${db} (${totalKeyCount})`; } export const useConnectionStore = defineStore("connection", () => {