- fixed issue of making calls with empty company id or it equal to 0;

This commit is contained in:
Vitalii Kiiko
2024-11-14 14:40:51 +01:00
parent b08e2d46c0
commit cf5f04d6c2
5 changed files with 35 additions and 26 deletions

View File

@@ -247,13 +247,15 @@ const BandoViewBeneficiario = () => {
const header = renderHeader();
useEffect(() => {
const bandoId = getBandoId();
storeSet.main.setAsyncRequest();
BandoService.getBando(bandoId, getBandoCallback, errGetBandoCallback);
ApplicationService.getApplications(getApplCallback, errGetApplCallback, [
['callId', bandoId],
['companyId', chosenCompanyId]
])
if (!isEmpty(chosenCompanyId) && chosenCompanyId !== 0) {
const bandoId = getBandoId();
storeSet.main.setAsyncRequest();
BandoService.getBando(bandoId, getBandoCallback, errGetBandoCallback);
ApplicationService.getApplications(getApplCallback, errGetApplCallback, [
['callId', bandoId],
['companyId', chosenCompanyId]
]);
}
}, [id, chosenCompanyId]);
return (