Skip to content

Commit 2746cfc

Browse files
committed
chore: fix build
1 parent 620f2ad commit 2746cfc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Documents.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,16 @@ export default function Documents(props: DocumentsProps) {
3232
const {routerPanesState, groupIndex, handleEditReference} = usePaneRouter()
3333
const schema = useSchema()
3434

35-
const {loading, error, data} = useListeningQuery<SanityDocument[]>(query, {
35+
const {
36+
loading,
37+
error,
38+
data: _data,
39+
} = useListeningQuery<SanityDocument[]>(query, {
3640
params,
3741
initialValue: [],
3842
options,
3943
})
44+
const data = _data as SanityDocument[]
4045

4146
const handleClick = useCallback(
4247
(id: string, type: string) => {

0 commit comments

Comments
 (0)