Skip to content

Commit

Permalink
Fix issue preparing screenshots with no groups
Browse files Browse the repository at this point in the history
Signed-off-by: Cintia Sanchez Garcia <[email protected]>
  • Loading branch information
cynthia-sg committed Jul 19, 2024
1 parent d7dd1fc commit 21db2f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/webapp/src/layout/screenshots/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 21db2f0

Please sign in to comment.