- fixed adding company getting data populated;
- reverted to non paginated tables for displaying confidi calls;
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user