Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur committed Oct 16, 2024
1 parent d498f56 commit 3256625
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions ui2/src/features/document/apiSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ type UpdateDocumentCustomFields = {
}>
}

type GetDocsByTypeArgs = {
document_type_id: string
}

type UpdateDocumentTypeArgs = {
document_id?: string
invalidatesTags: {
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
)
Expand Down

0 comments on commit 3256625

Please sign in to comment.