Fix: always pass remove_inbox_tags from UI, dont require in API (#5962)

This commit is contained in:
shamoon 2024-03-01 12:00:54 -08:00 committed by GitHub
parent 464ee51de8
commit a020d807d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -183,7 +183,7 @@ export class DocumentService extends AbstractPaperlessService<Document> {
update(o: Document): Observable<Document> {
// we want to only set created_date
o.created = undefined
o.remove_inbox_tags = this.settingsService.get(
o.remove_inbox_tags = !!this.settingsService.get(
SETTINGS_KEYS.DOCUMENT_EDITING_REMOVE_INBOX_TAGS
)
return super.update(o)