Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #631 from egovernments/develop
Browse files Browse the repository at this point in the history
PFM-4409
  • Loading branch information
rahuldevgarg authored Oct 26, 2023
2 parents c823655 + 93056b3 commit 5b900e8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions frontend/mgramseva/lib/repository/expenses_repo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,16 @@ class ExpensesRepository extends BaseService {
));

if (res != null && res['vendor'] != null) {
vendorList =
res['vendor'].map<Vendor>((e) => Vendor.fromJson(e)).toList();
var vendors = res['vendor'];
vendorList = [];
for (int i =0;i<vendors.length;i++){
if(vendors[i]!=null){
if(vendors[i]['owner']==null){
continue;
}
vendorList.add(Vendor.fromJson(vendors[i]));
}
}
}
return vendorList;
}
Expand Down

0 comments on commit 5b900e8

Please sign in to comment.