- confidi only calls updated api implementation;

This commit is contained in:
Vitalii Kiiko
2025-05-02 09:27:11 +02:00
parent 02cda22580
commit 4378134e35
3 changed files with 13 additions and 5 deletions

View File

@@ -25,6 +25,7 @@ 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);
@@ -169,8 +170,15 @@ const LatestBandiTableAsync = () => {
useEffect(() => {
setLocalAsyncRequest(true);
const paginationQuery = getPaginationQuery();
const role = storeGet('getRole');
BandoService.getBandiPaginated(paginationQuery, getCallback, errGetCallbacks);
if (role === 'ROLE_CONFIDI') {
BandoService.getBandiPaginated(paginationQuery, getCallback, errGetCallbacks, [
['onlyConfidiCall', true]
]);
} else {
BandoService.getBandiPaginated(paginationQuery, getCallback, errGetCallbacks);
}
}, [lazyState]);
return (