A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Comment cleanup
Michael Shamoon2c18f6268b20
diff --git a/src-ui/src/app/services/filter-editor-view.service.ts b/src-ui/src/app/services/filter-editor-view.service.tsindex 3a3b70e9a..ee7961f0f 100644--- a/src-ui/src/app/services/filter-editor-view.service.ts+++ b/src-ui/src/app/services/filter-editor-view.service.ts@@ -106,11 +106,11 @@ export class FilterEditorViewService {let existingRules = filterRules.filter(rule => rule.type.id == filterRuleType.id)let existingItemRule = existingRules?.find(rule => rule.value == item.id)- if (existingRules && existingItemRule) {- filterRules.splice(filterRules.indexOf(existingItemRule), 1) // if exact rule exists just remove+ if (existingRules && existingItemRule) { // if exact rule exists just remove+ filterRules.splice(filterRules.indexOf(existingItemRule), 1)} else if (existingRules.length > 0 && filterRuleType.multi) { // e.g. tags can have multiplefilterRules.push({type: filterRuleType, value: item.id})- } else if (existingRules.length > 0) { // Correspondents & DocumentTypes only one+ } else if (existingRules.length > 0) { // correspondents & documentTypes can only be onefilterRules.find(rule => rule.type.id == filterRuleType.id).value = item.id} else {filterRules.push({type: filterRuleType, value: item.id})