MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / handlePageSizeChange

Function handlePageSizeChange

web/src/components/table/ChannelsTable.js:1375–1389  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

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 {

Callers 2

UsersTable.jsFile · 0.70
LogsTable.jsFile · 0.70

Calls 2

showErrorFunction · 0.90
setActivePageFunction · 0.85

Tested by

no test coverage detected