pass through query ordering options (#2320)

This commit is contained in:
Brendan Allan 2024-04-12 16:05:50 +08:00 committed by GitHub
parent 2848782e8e
commit b485bcbcb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,12 +25,12 @@ export function useSearchExplorerQuery<TSource extends UseSearchSource>(props: {
if (props.search.target === 'paths') {
return usePathsExplorerQuery({
arg: { ...props.paths?.arg, filters, take: props.take },
order: null
order: props.paths?.order ?? null
});
} else {
return useObjectsExplorerQuery({
arg: { ...props.objects?.arg, filters, take: props.take },
order: null
order: props.objects?.order ?? null
});
}
}