From ad1e718a81c93aed6f95e30550437423d1765b59 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 25 Jul 2019 20:58:07 +0300 Subject: [PATCH] Disable distinct to fix invoice document count --- lib/ui/invoice/view/invoice_view_vm.dart | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/ui/invoice/view/invoice_view_vm.dart b/lib/ui/invoice/view/invoice_view_vm.dart index d8582dfc0..e033e4102 100644 --- a/lib/ui/invoice/view/invoice_view_vm.dart +++ b/lib/ui/invoice/view/invoice_view_vm.dart @@ -27,7 +27,6 @@ class InvoiceViewScreen extends StatelessWidget { @override Widget build(BuildContext context) { return StoreConnector( - distinct: true, converter: (Store store) { return InvoiceViewVM.fromStore(store); }, @@ -76,22 +75,6 @@ class EntityViewVM { final Function(BuildContext, String) onUploadDocument; final Function(BuildContext, DocumentEntity) onDeleteDocument; final Function(BuildContext, DocumentEntity) onViewExpense; - - @override - bool operator ==(dynamic other) => - client == other.client && - company == other.company && - invoice == other.invoice && - isSaving == other.isSaving && - isDirty == other.isDirty; - - @override - int get hashCode => - client.hashCode ^ - company.hashCode ^ - invoice.hashCode ^ - isSaving.hashCode ^ - isDirty.hashCode; } class InvoiceViewVM extends EntityViewVM {