From 1c249e84ec4ce0abeab5729e891d54499e095884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Fri, 19 Jul 2024 16:12:04 +0200 Subject: [PATCH] Fix issue preparing screenshots with no groups (#668) 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(() => {