(size)
| 1373 | }; |
| 1374 | |
| 1375 | const handlePageSizeChange = async (size) => { |
| 1376 | localStorage.setItem('page-size', size + ''); |
| 1377 | setPageSize(size); |
| 1378 | setActivePage(1); |
| 1379 | const { searchKeyword, searchGroup, searchModel } = getFormValues(); |
| 1380 | if (searchKeyword === '' && searchGroup === '' && searchModel === '') { |
| 1381 | loadChannels(1, size, idSort, enableTagMode) |
| 1382 | .then() |
| 1383 | .catch((reason) => { |
| 1384 | showError(reason); |
| 1385 | }); |
| 1386 | } else { |
| 1387 | searchChannels(enableTagMode, activeTypeKey, statusFilter, 1, size, idSort); |
| 1388 | } |
| 1389 | }; |
| 1390 | |
| 1391 | const fetchGroups = async () => { |
| 1392 | try { |
no test coverage detected