- updated functionality of downloading company delegation;
This commit is contained in:
@@ -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]
|
||||
]);
|
||||
}, [])
|
||||
|
||||
Reference in New Issue
Block a user