Skip to content

Commit

Permalink
refactor(desk): remove unused default ordering option in `useDocument…
Browse files Browse the repository at this point in the history
…List`
  • Loading branch information
rexxars committed Dec 19, 2022
1 parent 663cc67 commit e2209ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Expand Up @@ -76,7 +76,6 @@ export const DocumentListPane = memo(function DocumentListPane(props: DocumentLi
const filterIsSimpleTypeContraint = isSimpleTypeFilter(filter)

const {error, fullList, handleListChange, isLoading, items, onRetry} = useDocumentList({
defaultOrdering,
filter,
params,
sortOrder,
Expand Down
Expand Up @@ -2,14 +2,13 @@ import {VirtualListChangeOpts} from '@sanity/ui'
import {useEffect, useState, useCallback, useMemo, useRef} from 'react'
import {of} from 'rxjs'
import {filter as filterEvents} from 'rxjs/operators'
import {DocumentListPaneItem, QueryResult, SortOrder, SortOrderBy} from './types'
import {DocumentListPaneItem, QueryResult, SortOrder} from './types'
import {removePublishedWithDrafts, toOrderClause} from './helpers'
import {DEFAULT_ORDERING, FULL_LIST_LIMIT, PARTIAL_PAGE_LIMIT} from './constants'
import {getQueryResults} from './getQueryResults'
import {DEFAULT_STUDIO_CLIENT_OPTIONS, useClient} from 'sanity'

interface UseDocumentListOpts {
defaultOrdering: SortOrderBy[]
filter: string
params: Record<string, unknown>
sortOrder?: SortOrder
Expand Down

0 comments on commit e2209ec

Please sign in to comment.