- implemnted functionality adding to preferred calls;

This commit is contained in:
Vitalii Kiiko
2024-11-18 16:44:28 +01:00
parent 4d14971d1f
commit 291f769840
4 changed files with 61 additions and 16 deletions

View File

@@ -39,8 +39,10 @@ const AllBandiAccordion = () => {
useEffect(() => {
storeSet.main.setAsyncRequest();
BandoService.getBandi(getCallback, errGetCallbacks);
}, []);
BandoService.getBandi(getCallback, errGetCallbacks, [
['companyId', chosenCompanyId]
]);
}, [chosenCompanyId]);
const getCallback = (data) => {
if (data.status === 'SUCCESS') {