From 21db2f03dfe9495f8994db13a59bb6b6e065561f Mon Sep 17 00:00:00 2001 From: Cintia Sanchez Garcia Date: Fri, 19 Jul 2024 15:09:45 +0200 Subject: [PATCH] Fix issue preparing screenshots with no groups Signed-off-by: Cintia Sanchez Garcia --- ui/webapp/src/layout/screenshots/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/webapp/src/layout/screenshots/index.tsx b/ui/webapp/src/layout/screenshots/index.tsx index af232c9a..b87ac9b2 100644 --- a/ui/webapp/src/layout/screenshots/index.tsx +++ b/ui/webapp/src/layout/screenshots/index.tsx @@ -25,7 +25,8 @@ const Screenshots = (props: Props) => { onMount(() => { // This class enables scroll in body to capture the full screenshot document.body.classList.add('screenshot'); - setGroupsData(itemsDataGetter.getGridData(false)); + // Get grid data with all option when groups are not defined + setGroupsData(itemsDataGetter.getGridData(props.initialData.groups ? false : true)); }); onCleanup(() => {