mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Fix: fix re-activation of save button when adding / removing array items (#8208)
This commit is contained in:
		@@ -710,7 +710,10 @@ export class DocumentDetailComponent
 | 
			
		||||
        next: (docValues) => {
 | 
			
		||||
          // in case data changed while saving eg removing inbox_tags
 | 
			
		||||
          this.documentForm.patchValue(docValues)
 | 
			
		||||
          this.store.next(this.documentForm.value)
 | 
			
		||||
          const newValues = Object.assign({}, this.documentForm.value)
 | 
			
		||||
          newValues.tags = [...docValues.tags]
 | 
			
		||||
          newValues.custom_fields = [...docValues.custom_fields]
 | 
			
		||||
          this.store.next(newValues)
 | 
			
		||||
          this.openDocumentService.setDirty(this.document, false)
 | 
			
		||||
          this.openDocumentService.save()
 | 
			
		||||
          this.toastService.showInfo($localize`Document saved successfully.`)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user