Browse Source

fix: reset page number after query

JustSong 2 năm trước cách đây
mục cha
commit
5fdf670a19
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      web/src/components/LogsTable.js

+ 1 - 0
web/src/components/LogsTable.js

@@ -129,6 +129,7 @@ const LogsTable = () => {
 
   const refresh = async () => {
     setLoading(true);
+    setActivePage(1)
     await loadLogs(0);
     if (isAdminUser) {
       getLogStat().then();