diff --git a/src-ui/e2e/document-list/document-list.spec.ts b/src-ui/e2e/document-list/document-list.spec.ts index 5dea9985e..e40f1f733 100644 --- a/src-ui/e2e/document-list/document-list.spec.ts +++ b/src-ui/e2e/document-list/document-list.spec.ts @@ -22,7 +22,7 @@ test('basic filtering', async ({ page }) => { await page.getByRole('button', { name: 'Correspondent' }).click() await page.getByRole('menuitem', { name: 'Test Correspondent 1' }).click() await page.getByRole('menuitem', { name: 'Correspondent 9' }).click() - await expect(page).toHaveURL(/correspondent__id__in=12,1/) + await expect(page).toHaveURL(/correspondent__id__in=1,12/) await expect(page.locator('pngx-document-list')).toHaveText(/7 documents/) await page .locator('pngx-filter-editor') diff --git a/src-ui/e2e/document-list/requests/api-document-list1.har b/src-ui/e2e/document-list/requests/api-document-list1.har index 6a4aa9ac1..fd20bf743 100644 --- a/src-ui/e2e/document-list/requests/api-document-list1.har +++ b/src-ui/e2e/document-list/requests/api-document-list1.har @@ -4113,7 +4113,7 @@ "time": 0.554, "request": { "method": "GET", - "url": "http://localhost:8000/api/documents/?page=1&page_size=50&ordering=-created&truncate_content=true&correspondent__id__in=12,1", + "url": "http://localhost:8000/api/documents/?page=1&page_size=50&ordering=-created&truncate_content=true&correspondent__id__in=1,12", "httpVersion": "HTTP/1.1", "cookies": [], "headers": [ @@ -4148,7 +4148,7 @@ }, { "name": "correspondent__id__in", - "value": "12,1" + "value": "1,12" } ], "headersSize": -1, diff --git a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html index cac217716..1313b90d1 100644 --- a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html +++ b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html @@ -35,7 +35,7 @@ @if (selectionModel.items) {
- @for (item of selectionModel.itemsSorted | filter: filterText; track item; let i = $index) { + @for (item of selectionModel.items | filter: filterText; track item; let i = $index) { @if (allowSelectNone || item.id) { @@ -45,13 +45,13 @@
} @if (editing) { - @if ((selectionModel.itemsSorted | filter: filterText).length === 0 && createRef !== undefined) { + @if ((selectionModel.items | filter: filterText).length === 0 && createRef !== undefined) { } - @if ((selectionModel.itemsSorted | filter: filterText).length > 0) { + @if ((selectionModel.items | filter: filterText).length > 0) {