From b485bcbcb03a1ec40551961803fcfe431d9675a9 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Fri, 12 Apr 2024 16:05:50 +0800 Subject: [PATCH] pass through query ordering options (#2320) --- interface/app/$libraryId/search/useSearchExplorerQuery.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/app/$libraryId/search/useSearchExplorerQuery.ts b/interface/app/$libraryId/search/useSearchExplorerQuery.ts index deec03aea..1007ca57d 100644 --- a/interface/app/$libraryId/search/useSearchExplorerQuery.ts +++ b/interface/app/$libraryId/search/useSearchExplorerQuery.ts @@ -25,12 +25,12 @@ export function useSearchExplorerQuery(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 }); } }