Skip to content

Commit

Permalink
fix: correzione errore js
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Oct 22, 2024
1 parent 4472a99 commit 31bc259
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/interventi/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,9 @@
}
let data = anagrafica.getData();
input("idcontratto").getElement()
.selectSetNew(data.id_contratto, data.descrizione_contratto);
if (data) {
input("idcontratto").getElement().selectSetNew(data.id_contratto, data.descrizione_contratto);
}
// Quando modifico orario inizio, allineo anche l\'orario fine
let orario_inizio = input("orario_inizio").getElement();
Expand Down

0 comments on commit 31bc259

Please sign in to comment.