Skip to content

Commit

Permalink
fix(admin-ui): Fix creating customer on draft order
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Apr 29, 2024
1 parent d871eb7 commit 64b9c60
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ export class DraftOrderDetailComponent
.setCustomerForDraftOrder(this.id, { customerId: result.id })
.subscribe();
} else if (result) {
this.dataService.order.setCustomerForDraftOrder(this.id, { input: result }).subscribe();
const { note, ...input } = result;
this.dataService.order.setCustomerForDraftOrder(this.id, { input }).subscribe();
}
});
}
Expand Down

0 comments on commit 64b9c60

Please sign in to comment.