Skip to content

Commit 61e981b

Browse files
committed
chore(sanity): remove unused parameter from onRetry function signature
1 parent a7ca8b6 commit 61e981b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/sanity/src/structure/panes/documentList/DocumentListPaneContent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ interface DocumentListPaneContentProps {
4646
layout?: GeneralPreviewLayoutKey
4747
loadingVariant?: LoadingVariant
4848
onListChange: () => void
49-
onRetry?: (event: unknown) => void
49+
onRetry?: () => void
5050
paneTitle: string
5151
searchInputElement: HTMLInputElement | null
5252
showIcons: boolean

packages/sanity/src/structure/panes/documentList/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type SortOrder = {
1313

1414
export interface QueryResult {
1515
error: {message: string} | null
16-
onRetry?: (event: unknown) => void
16+
onRetry?: () => void
1717
result: {documents: SanityDocumentLike[]} | null
1818
}
1919

packages/sanity/src/structure/panes/documentList/useDocumentList.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface DocumentListState {
3838
isSearchReady: boolean
3939
items: DocumentListPaneItem[]
4040
onListChange: () => void
41-
onRetry?: (event: unknown) => void
41+
onRetry?: () => void
4242
}
4343

4444
const INITIAL_QUERY_RESULTS: QueryResult = {

0 commit comments

Comments
 (0)