From 0beb7220560ac0e4414da6a56140bbe50b928e29 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 11 Apr 2024 15:30:24 +0300 Subject: [PATCH] Adjust fix for due date --- lib/ui/invoice/edit/invoice_edit_desktop.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ui/invoice/edit/invoice_edit_desktop.dart b/lib/ui/invoice/edit/invoice_edit_desktop.dart index e6ea57c16b..acdac05008 100644 --- a/lib/ui/invoice/edit/invoice_edit_desktop.dart +++ b/lib/ui/invoice/edit/invoice_edit_desktop.dart @@ -270,7 +270,7 @@ class InvoiceEditDesktopState extends State Flexible( flex: 3, child: Column( - key: ValueKey('__invoice_${invoice.id}_${invoice.updatedAt}__'), + key: ValueKey('__invoice_${invoice.id}__'), children: [ Row( crossAxisAlignment: CrossAxisAlignment.start, @@ -456,7 +456,8 @@ class InvoiceEditDesktopState extends State }, ), DatePicker( - key: ValueKey('__terms_${client.id}__'), + key: ValueKey( + '__due_date_${client.id}_${invoice.updatedAt}__'), labelText: entityType == EntityType.invoice || entityType == EntityType.purchaseOrder ? localization.dueDate