Skip to content

Commit

Permalink
fix(hooks): The total number before assigning a value to the table is…
Browse files Browse the repository at this point in the history
… incorrect.
  • Loading branch information
Azir-11 committed Dec 25, 2024
1 parent d7aebb7 commit 5b22cc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/common/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export function useTable<A extends NaiveUI.TableApiFn>(config: NaiveUI.NaiveTabl
page: 1,
pageSize: 10,
showSizePicker: true,
itemCount: 0,
pageSizes: [10, 15, 20, 25, 30],
onUpdatePage: async (page: number) => {
pagination.page = page;
Expand Down

0 comments on commit 5b22cc7

Please sign in to comment.