- fixed adding company getting data populated;

- reverted to non paginated tables for displaying confidi calls;
This commit is contained in:
Vitalii Kiiko
2025-04-29 14:37:54 +02:00
parent 416b2eca3a
commit ba290e9c03
5 changed files with 169 additions and 16 deletions

View File

@@ -50,10 +50,20 @@ const AllBandiAccordion = ({ showOnlyPreferred = false }) => {
if (existingCompany && !isAsyncRequest) {
storeSet('setAsyncRequest');
BandoService.getBandi(getCallback, errGetCallbacks, [
['companyId', chosenCompanyId],
['onlyPreferredCall', showOnlyPreferred]
]);
const role = storeGet('getRole')
if (role === 'ROLE_CONFIDI') {
BandoService.getBandi(getCallback, errGetCallbacks, [
['companyId', chosenCompanyId],
['onlyPreferredCall', showOnlyPreferred],
['onlyConfidiCall', true]
]);
} else {
BandoService.getBandi(getCallback, errGetCallbacks, [
['companyId', chosenCompanyId],
['onlyPreferredCall', showOnlyPreferred]
]);
}
}
}, [chosenCompanyId, companies]);