From 941e9db574850260d2caa5c2a5f356a943f7027a Mon Sep 17 00:00:00 2001 From: sanmont3drepo Date: Wed, 17 Jan 2024 16:03:17 -0300 Subject: [PATCH] ISSUE #4642 - Fixed bug that was resetting the transformations when editing the groups --- .../tickets/ticketsForm/ticketGroups/ticketGroups.component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/v5/ui/routes/viewer/tickets/ticketsForm/ticketGroups/ticketGroups.component.tsx b/frontend/src/v5/ui/routes/viewer/tickets/ticketsForm/ticketGroups/ticketGroups.component.tsx index 2c963fb3b75..ac17cf99544 100644 --- a/frontend/src/v5/ui/routes/viewer/tickets/ticketsForm/ticketGroups/ticketGroups.component.tsx +++ b/frontend/src/v5/ui/routes/viewer/tickets/ticketsForm/ticketGroups/ticketGroups.component.tsx @@ -194,7 +194,7 @@ export const TicketGroups = ({ value, onChange, onBlur }: TicketGroupsProps) => }, [hasClearedOverrides]); useEffect(() => { - dispatch(ViewpointsActions.setSelectedViewpoint(null)); + dispatch(ViewpointsActions.clearColorOverrides()); ViewerService.on(VIEWER_EVENTS.BACKGROUND_SELECTED, clearHighlightedIndex); return () => ViewerService.off(VIEWER_EVENTS.BACKGROUND_SELECTED, clearHighlightedIndex);