From 4a3f0316ea8f9b25378016739dd90c3eec02a773 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Wed, 7 Jan 2026 17:57:53 +0300 Subject: [PATCH] fix: update folder reference in socket store and adjust history count logic in state store --- ui/app/stores/SocketStore.ts | 2 +- ui/app/stores/StateStore.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/app/stores/SocketStore.ts b/ui/app/stores/SocketStore.ts index 467147dd..948f5001 100644 --- a/ui/app/stores/SocketStore.ts +++ b/ui/app/stores/SocketStore.ts @@ -159,7 +159,7 @@ export const useSocketStore = defineStore('socket', () => { return; } - if (json.data?.folder) { + if (json.data?.folders) { config.add('folders', json.data.folders) } diff --git a/ui/app/stores/StateStore.ts b/ui/app/stores/StateStore.ts index 27172e49..d6c8e06b 100644 --- a/ui/app/stores/StateStore.ts +++ b/ui/app/stores/StateStore.ts @@ -176,7 +176,12 @@ export const useStateStore = defineStore('state', () => { const getPagination = () => state.pagination - const setHistoryCount = (count: number) => state.pagination.total = count + const setHistoryCount = (count: number) => { + state.pagination.total = count + if (count > 0 && !state.pagination.isLoaded) { + state.pagination.isLoaded = false + } + } /** * Delete items by specific IDs or status filter.