From 5993e0842c8b2b0587bbf1fcf0e114ccab3f68b0 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Thu, 16 Mar 2023 10:55:37 +0530 Subject: [PATCH] Fix: EventType crash when Moving up and down beyond boundaries (#7765) * Make sure that moving up and down doesnt go beyond boundary * Update packages/features/form-builder/FormBuilder.tsx Co-authored-by: Alex van Andel --------- Co-authored-by: Alex van Andel --- .../features/form-builder/FormBuilder.tsx | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/packages/features/form-builder/FormBuilder.tsx b/packages/features/form-builder/FormBuilder.tsx index bf805d4c4d..2a182ce727 100644 --- a/packages/features/form-builder/FormBuilder.tsx +++ b/packages/features/form-builder/FormBuilder.tsx @@ -284,21 +284,25 @@ export const FormBuilder = function FormBuilder({ return (
  • - - + {index >= 1 && ( + + )} + {index < fields.length - 1 && ( + + )}