Skip to content

Commit 761347f

Browse files
committed
feat: remove sorting from signing document list
Sorting is done on the backend in Altinn/app-lib-dotnet#1511
1 parent 048148e commit 761347f

File tree

1 file changed

+1
-1
lines changed
  • src/layout/SigningDocumentList

1 file changed

+1
-1
lines changed

src/layout/SigningDocumentList/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function useDocumentList(
4444
return z
4545
.object({ dataElements: z.array(signingDocumentSchema) })
4646
.parse(response)
47-
.dataElements.toSorted((a, b) => (a.filename ?? '').localeCompare(b.filename ?? ''));
47+
.dataElements;
4848
},
4949
staleTime: 1000 * 60 * 30, // 30 minutes
5050
refetchOnMount: 'always',

0 commit comments

Comments
 (0)