From 4e0b70bfbb8bb01e1c83f2c8be61f52e5afb7bd9 Mon Sep 17 00:00:00 2001 From: TechSubham Date: Thu, 26 Dec 2024 21:43:34 +0530 Subject: [PATCH] bug fix --- .../src/components/manage/Blocks/Search/hocs/withSearch.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/volto/src/components/manage/Blocks/Search/hocs/withSearch.jsx b/packages/volto/src/components/manage/Blocks/Search/hocs/withSearch.jsx index 232451d271..28c766cbb1 100644 --- a/packages/volto/src/components/manage/Blocks/Search/hocs/withSearch.jsx +++ b/packages/volto/src/components/manage/Blocks/Search/hocs/withSearch.jsx @@ -18,6 +18,7 @@ const SEARCH_ENDPOINT_FIELDS = [ 'limit', 'sort_on', 'sort_order', + 'depth', ]; const PAQO = 'plone.app.querystring.operation'; @@ -73,6 +74,7 @@ function getInitialState( sort_order: sortOrderParam || data.query?.sort_order, b_size: data.query?.b_size, limit: data.query?.limit, + depth: data.query?.depth, block: id, }; } @@ -130,6 +132,7 @@ function normalizeState({ sort_order: sortOrder || query.sort_order, b_size: query.b_size, limit: query.limit, + depth: query.depth, block: id, };