in web/rv-filter-section.ts [192:209]
private handleReviewerDeleted(
e: CustomEvent<ReviewerDeletedEventDetail>,
reviewer: string
) {
const {type, editing} = e.detail;
if (editing) {
// Just cancelling edit. Nothing was persisted yet, so nothing to delete.
if (type === Type.CC) {
this.ccs = [...this.ccs.slice(0, -1)];
} else {
this.reviewers = [...this.reviewers.slice(0, -1)];
}
this.editingReviewer = false;
} else {
// The reviewer was not in edit mode, but DELETE was clicked.
this.putReviewer(reviewer, Action.REMOVE, type);
}
}