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

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
});
}
}