Skip to content

Commit

Permalink
fix(SI): fix on display product generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nsagnett committed Jun 28, 2021
1 parent 152debd commit 0edd9b7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ public List<ECommerceProduct> Products() {

@Override
protected Map<String, Object> getData() {
return data;
if (!products.isEmpty()) {
data.put("product", products.remove(0).getProps());
}
return super.getData();
}

@Override
Expand Down

0 comments on commit 0edd9b7

Please sign in to comment.