mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 06:28:54 +00:00
fix(nui): Data fetching into manual pagination
Perhaps don't need the loading state...?
This commit is contained in:
1 parent
7560099231
commit
238d7cd589
4 files changed
+60
-50
No files matched your search
+3
-2
@@ -51,8 +51,9 @@ RegisterCommand(
|
||||
onNet(`oxmysql:fetchResource`, (data: {resource: string, pageIndex: number}) => {
|
||||
if (typeof data.resource !== 'string') return;
|
||||
|
||||
const queries = logStorage[data.resource].slice(data.pageIndex * 12, data.pageIndex + 12)
|
||||
|
||||
const startRow = data.pageIndex * 12
|
||||
const endRow = startRow + 12
|
||||
const queries = logStorage[data.resource].slice(startRow, endRow)
|
||||
const pageCount = Math.ceil(logStorage[data.resource].length / 12)
|
||||
|
||||
if (!queries) return;
|
||||
|
||||
Reference in new issue
Block a user