Przeglądaj źródła

fix: reset page number after query

JustSong 2 lat temu
rodzic
commit
5fdf670a19
1 zmienionych plików z 1 dodań i 0 usunięć
  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();