- fixed issue with undefined initial value for text input;
- completed company profile; - updated logic of creating the application;
This commit is contained in:
@@ -35,7 +35,7 @@ const BandoViewBeneficiario = () => {
|
||||
const [newQuestion, setNewQuestion] = useState('');
|
||||
const [applicationObj, setApplicationObj] = useState(true);
|
||||
const bandoMsgs = useRef(null);
|
||||
const chosenCompanyId = pathOr(0, [0], companies);
|
||||
const chosenCompanyId = pathOr(0, [0, 'id'], companies);
|
||||
|
||||
const scaricaBando = () => {
|
||||
|
||||
@@ -55,7 +55,7 @@ const BandoViewBeneficiario = () => {
|
||||
navigate(`/imieibandi/${applicationObj.id}`);
|
||||
} else {
|
||||
const bandoId = getBandoId();
|
||||
ApplicationService.createApplication(bandoId, {}, createApplCallback, errCreateApplCallback)
|
||||
ApplicationService.createApplication(bandoId, {}, createApplCallback, errCreateApplCallback, [['companyId', chosenCompanyId]])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user