From eced0d09f039cc6e41dc6ae2578c2ff8d2624500 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 27 Nov 2024 14:15:57 -0800 Subject: [PATCH] always render delete button --- gui/src/components/StepContainer/ResponseActions.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/gui/src/components/StepContainer/ResponseActions.tsx b/gui/src/components/StepContainer/ResponseActions.tsx index efe0053238..8e09cb1422 100644 --- a/gui/src/components/StepContainer/ResponseActions.tsx +++ b/gui/src/components/StepContainer/ResponseActions.tsx @@ -27,9 +27,6 @@ export default function ResponseActions({ (store: RootState) => store.editModeState.isInEditMode, ); - // Only render delete button if there is more than one message - const shouldRenderDelete = index !== 1; - if (isInEditMode) { return ; } @@ -46,11 +43,9 @@ export default function ResponseActions({ )} - {shouldRenderDelete && ( - - - - )} + + + - );