fix: update folder reference in socket store and adjust history count logic in state store

This commit is contained in:
arabcoders 2026-01-07 17:57:53 +03:00
parent cf8704a2aa
commit 4a3f0316ea
2 changed files with 7 additions and 2 deletions

View file

@ -159,7 +159,7 @@ export const useSocketStore = defineStore('socket', () => {
return;
}
if (json.data?.folder) {
if (json.data?.folders) {
config.add('folders', json.data.folders)
}

View file

@ -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.