fix operations e tasks
Some checks failed
Build and Release FLUX (Multi-Platform) / build-windows (push) Successful in 6m20s
Build and Release FLUX (Multi-Platform) / build-android (push) Failing after 11m52s
Build and Release FLUX (Multi-Platform) / build-web (push) Successful in 1m0s

This commit is contained in:
2026-06-04 13:42:29 +02:00
parent 4efc3ce182
commit 5ce0110197
11 changed files with 129 additions and 103 deletions

View File

@@ -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