- updated functionality of downloading company delegation;

This commit is contained in:
Vitalii Kiiko
2024-12-06 09:22:25 +01:00
parent 0f54ce6bd9
commit 1ad1cc19bc
3 changed files with 7 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ const DownloadCompanyDelegation = ({ applicationId = 0 }) => {
const getDellegaCallback = (data) => {
if (data.data) {
setDelega([data.data]);
setDelega(data.data);
}
setLoading(false);
}
@@ -32,7 +32,7 @@ const DownloadCompanyDelegation = ({ applicationId = 0 }) => {
useEffect(() => {
setLoading(true);
CompanyService.getCompanyDelega(0, getDellegaCallback, errDellegaCallback, [
CompanyService.getCompanyDelega(getDellegaCallback, errDellegaCallback, [
['applicationId', applicationId]
]);
}, [])