From 2469f047ad1c99e118bd664120979ff7f8971bef Mon Sep 17 00:00:00 2001 From: Yusuf Musleh Date: Sat, 29 Jun 2024 16:27:26 +0300 Subject: [PATCH] feat: Add default order lib v2 param --- src/studio-home/data/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/studio-home/data/api.js b/src/studio-home/data/api.js index f177657b92..bcf256eb19 100644 --- a/src/studio-home/data/api.js +++ b/src/studio-home/data/api.js @@ -58,7 +58,7 @@ export async function getStudioHomeLibrariesV2(customParams) { page: customParams.page || 1, pageSize: customParams.pageSize || 50, pagination: customParams.pagination !== undefined ? customParams.pagination : true, - order: customParams.order, + order: customParams.order || 'title', textSearch: customParams.search, }; const customParamsFormat = snakeCaseObject(customParamsDefaults);