- re-added pagination endpoint for getting confidi calls;

This commit is contained in:
Vitalii Kiiko
2025-05-02 09:54:06 +02:00
parent 4378134e35
commit bd0503e736
6 changed files with 33 additions and 25 deletions

View File

@@ -25,7 +25,6 @@ import ProperBandoLabel from '../../../../components/ProperBandoLabel';
import { Dropdown } from 'primereact/dropdown';
import { Tag } from 'primereact/tag';
import { Calendar } from 'primereact/calendar';
import { storeGet } from '../../../../store';
const LatestBandiTableAsync = () => {
const [localAsyncRequest, setLocalAsyncRequest] = useState(false);
@@ -170,15 +169,8 @@ const LatestBandiTableAsync = () => {
useEffect(() => {
setLocalAsyncRequest(true);
const paginationQuery = getPaginationQuery();
const role = storeGet('getRole');
if (role === 'ROLE_CONFIDI') {
BandoService.getBandiPaginated(paginationQuery, getCallback, errGetCallbacks, [
['onlyConfidiCall', true]
]);
} else {
BandoService.getBandiPaginated(paginationQuery, getCallback, errGetCallbacks);
}
BandoService.getBandiPaginated(paginationQuery, getCallback, errGetCallbacks);
}, [lazyState]);
return (