mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-02 10:03:28 +00:00
pass through query ordering options (#2320)
This commit is contained in:
parent
2848782e8e
commit
b485bcbcb0
|
@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue