mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-10-20 03:06:10 -05:00
Fix: reset documents sort field if user deletes the custom field (#9127)
This commit is contained in:
@@ -195,11 +195,7 @@ describe('DocumentListViewService', () => {
|
||||
{ custom_field_999: ['Custom field not found'] },
|
||||
{ status: 400, statusText: 'Unexpected error' }
|
||||
)
|
||||
expect(documentListViewService.error).toEqual(
|
||||
'custom_field_999: Custom field not found'
|
||||
)
|
||||
// reset the list
|
||||
documentListViewService.sortField = 'created'
|
||||
// resets itself
|
||||
req = httpTestingController.expectOne(
|
||||
`${environment.apiBaseUrl}documents/?page=1&page_size=50&ordering=-created&truncate_content=true`
|
||||
)
|
||||
|
Reference in New Issue
Block a user