fix operations e tasks
This commit is contained in:
@@ -273,7 +273,6 @@ class OperationFormCubit extends Cubit<OperationFormState> {
|
||||
|
||||
final updatedOperation = current.copyWith(
|
||||
// Se newProvider è null, passiamo una funzione che ritorna null per sbiancare i campi!
|
||||
providerId: () => newProvider?.id,
|
||||
provider: () => newProvider,
|
||||
);
|
||||
|
||||
@@ -379,7 +378,6 @@ class OperationFormCubit extends Cubit<OperationFormState> {
|
||||
defaultDate, // Impostiamo la scadenza di default se calcolata
|
||||
// 🥷 APPLICHIAMO IL TRUCCO NINJA DELLE FUNZIONI
|
||||
// Se targetProvider è null, le funzioni ritorneranno null sbiancando il DB!
|
||||
providerId: () => targetProvider?.id,
|
||||
provider: () => targetProvider,
|
||||
|
||||
// Nota: Per azzerare davvero questi due, ricordati in futuro di applicare
|
||||
|
||||
Reference in New Issue
Block a user