From 5f4d7de62e2dc1ceb6d7e82f364c003cb19809cc Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Tue, 13 May 2025 12:41:19 +0300 Subject: [PATCH] chore: fix rendering issue without setConstraints (#9975) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The current implementation states that if you do not have access—typically as a viewer user—it renders the old component. Rendering an empty view is acceptable, as this is part of the segment creation flow, and if you do not have permissions, you do not need to see it. --- .../component/segments/SegmentFormStepTwo.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/component/segments/SegmentFormStepTwo.tsx b/frontend/src/component/segments/SegmentFormStepTwo.tsx index 560b6a6888..df2c9133a9 100644 --- a/frontend/src/component/segments/SegmentFormStepTwo.tsx +++ b/frontend/src/component/segments/SegmentFormStepTwo.tsx @@ -202,14 +202,14 @@ export const SegmentFormStepTwo: React.FC = ({ } /> - {addEditStrategy && - hasAccess(modePermission, project) && - setConstraints ? ( - + {addEditStrategy ? ( + hasAccess(modePermission, project) && setConstraints ? ( + + ) : null ) : (