Skip to content

Commit

Permalink
[CORE] return an empty list instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
monolidth committed Feb 19, 2021
1 parent 667bd4d commit f15f034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/network/network_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class NetworkClient {
shop: Value(r['storeName']),
category: Value(r['category']),
items: Value(holder.showItemList == false
? null
? jsonEncode([])
: jsonEncode(r['receiptItems'])),
date: Value(_date));

Expand Down

0 comments on commit f15f034

Please sign in to comment.