From a5dc9a13ad8ed9c1962605aa1f968681c7dae72b Mon Sep 17 00:00:00 2001 From: Sacha Al Himdani Date: Thu, 19 Mar 2026 14:36:30 +0100 Subject: [PATCH] Fix style Signed-off-by: Sacha Al Himdani --- .../organizations/documents/_components/DocumentList.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/console/src/pages/organizations/documents/_components/DocumentList.tsx b/apps/console/src/pages/organizations/documents/_components/DocumentList.tsx index 02414f669..a0137ea5a 100644 --- a/apps/console/src/pages/organizations/documents/_components/DocumentList.tsx +++ b/apps/console/src/pages/organizations/documents/_components/DocumentList.tsx @@ -9,7 +9,7 @@ import { ConnectionHandler, graphql } from "relay-runtime"; import type { DocumentListBulkArchiveMutation } from "#/__generated__/core/DocumentListBulkArchiveMutation.graphql"; import type { DocumentListBulkUnarchiveMutation } from "#/__generated__/core/DocumentListBulkUnarchiveMutation.graphql"; import type { DocumentListFragment$key } from "#/__generated__/core/DocumentListFragment.graphql"; -import type { DocumentType, DocumentsListQuery } from "#/__generated__/core/DocumentsListQuery.graphql"; +import type { DocumentOrderField, DocumentsListQuery, DocumentType } from "#/__generated__/core/DocumentsListQuery.graphql"; import { BulkExportDialog, type BulkExportDialogRef } from "#/components/documents/BulkExportDialog"; import { type Order, SortableTable, SortableTh } from "#/components/SortableTable"; import { useBulkDeleteDocumentsMutation, useBulkExportDocumentsMutation } from "#/hooks/graph/DocumentGraph"; @@ -259,8 +259,7 @@ export function DocumentList(props: { const refetchWithFilters: ComponentProps["refetch"] = ({ order }) => { pagination.refetch({ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - order: order as any, + order: { direction: order.direction, field: order.field as DocumentOrderField }, status: [tab], documentTypes: documentTypeFilter ? [documentTypeFilter] : null, });