From 3256625de3b5350b73e2fd7e5644777013ca46b5 Mon Sep 17 00:00:00 2001 From: Eugen Ciur Date: Wed, 16 Oct 2024 11:46:41 +0200 Subject: [PATCH] linting --- ui2/src/features/document/apiSlice.ts | 4 ---- .../DocumentsByTypeCommander/DocumentsByTypeCommander.tsx | 8 +------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/ui2/src/features/document/apiSlice.ts b/ui2/src/features/document/apiSlice.ts index ef7d54a14..fa8d02363 100644 --- a/ui2/src/features/document/apiSlice.ts +++ b/ui2/src/features/document/apiSlice.ts @@ -57,10 +57,6 @@ type UpdateDocumentCustomFields = { }> } -type GetDocsByTypeArgs = { - document_type_id: string -} - type UpdateDocumentTypeArgs = { document_id?: string invalidatesTags: { diff --git a/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/DocumentsByTypeCommander.tsx b/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/DocumentsByTypeCommander.tsx index 6264c91c1..81f3a0d7d 100644 --- a/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/DocumentsByTypeCommander.tsx +++ b/ui2/src/features/nodes/components/Commander/DocumentsByTypeCommander/DocumentsByTypeCommander.tsx @@ -1,11 +1,7 @@ import {useAppSelector} from "@/app/hooks" import PanelContext from "@/contexts/PanelContext" import {useGetDocsByTypeQuery} from "@/features/document/apiSlice" -import {useGetFolderQuery} from "@/features/nodes/apiSlice" -import { - selectCommanderDocumentTypeID, - selectCurrentNodeID -} from "@/features/ui/uiSlice" +import {selectCommanderDocumentTypeID} from "@/features/ui/uiSlice" import type {PanelMode} from "@/types" import {Box, Checkbox, Stack, Table} from "@mantine/core" import {skipToken} from "@reduxjs/toolkit/query" @@ -15,11 +11,9 @@ import DocumentRow from "./DocumentRow" export default function DocumentsByCategoryCommander() { const mode: PanelMode = useContext(PanelContext) - const currentNodeID = useAppSelector(s => selectCurrentNodeID(s, mode)) const currentDocumentTypeID = useAppSelector(s => selectCommanderDocumentTypeID(s, mode) ) - const {data: currentFolder} = useGetFolderQuery(currentNodeID ?? skipToken) const {data: nodes} = useGetDocsByTypeQuery( currentDocumentTypeID ?? skipToken )