@vendure/admin-ui 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2896,10 +2896,12 @@ class OrderEditorComponent extends TypedBaseDetailComponent {
2896
2896
  if (adjustedLine) {
2897
2897
  return adjustedLine.quantity;
2898
2898
  }
2899
- else {
2900
- const line = this.orderSnapshot.lines.find(l => l.id === lineId);
2901
- return line ? line.quantity : 0;
2899
+ const addedLine = this.modifyOrderInput.addItems?.find(l => this.getIdForAddedItem(l) === lineId);
2900
+ if (addedLine) {
2901
+ return addedLine.quantity ?? 1;
2902
2902
  }
2903
+ const line = this.orderSnapshot.lines.find(l => l.id === lineId);
2904
+ return line ? line.quantity : 1;
2903
2905
  }
2904
2906
  updateLineQuantity(line, quantity) {
2905
2907
  const { adjustOrderLines } = this.modifyOrderInput;