A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix reverting old selection in all cases by always doing it
Michael Shamoonef924e896b8b
diff --git a/src-ui/src/app/services/document-list-view.service.ts b/src-ui/src/app/services/document-list-view.service.tsindex 1fc5e09c5..4eb0c276c 100644--- a/src-ui/src/app/services/document-list-view.service.ts+++ b/src-ui/src/app/services/document-list-view.service.ts@@ -266,10 +266,8 @@ export class DocumentListViewService {const fromIndex = Math.min(this.rangeSelectionAnchorIndex, documentToIndex)const toIndex = Math.max(this.rangeSelectionAnchorIndex, documentToIndex)- if (this.lastRangeSelectionToIndex !== null &&- ((this.lastRangeSelectionToIndex > this.rangeSelectionAnchorIndex && documentToIndex <= this.rangeSelectionAnchorIndex) ||- (this.lastRangeSelectionToIndex < this.rangeSelectionAnchorIndex && documentToIndex >= this.rangeSelectionAnchorIndex))) {- // new click is "opposite side" of anchor so we invert the old selection+ if (this.lastRangeSelectionToIndex !== null) {+ // revert the old selectionthis.documents.slice(Math.min(this.rangeSelectionAnchorIndex, this.lastRangeSelectionToIndex), Math.max(this.rangeSelectionAnchorIndex, this.lastRangeSelectionToIndex) + 1).forEach(d => {this.selected.delete(d.id)})