Minor refactoring

This commit is contained in:
Michael Shamoon
2020-12-19 07:49:32 -08:00
parent f5681945cd
commit 83bb7d71fb
2 changed files with 5 additions and 11 deletions

View File

@@ -108,11 +108,11 @@ export class BulkEditorComponent {
}
applyCorrespondent(selectedCorrespondent: PaperlessCorrespondent[]) {
this.setCorrespondent.emit(selectedCorrespondent)
this.setCorrespondent.emit(selectedCorrespondent.length > 0 ? selectedCorrespondent.shift() : null)
}
applyDocumentType(selectedDocumentType: PaperlessDocumentType[]) {
this.setDocumentType.emit(selectedDocumentType)
this.setDocumentType.emit(selectedDocumentType.length > 0 ? selectedDocumentType.shift() : null)
}
applyDelete() {