CaIon 2 лет назад
Родитель
Сommit
cddcf9caaa
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      web/src/components/UsersTable.js

+ 5 - 1
web/src/components/UsersTable.js

@@ -288,7 +288,11 @@ const UsersTable = () => {
     }
 
     const refresh = async () => {
-        await loadUsers(activePage - 1);
+        if (searchKeyword === '') {
+            await loadUsers(activePage - 1);
+        } else {
+            await searchUsers();
+        }
     };
 
     return (