mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-19 05:45:01 -04:00
pass through query ordering options (#2320)
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user