From aba910de70b44f7af1fe7051ec6f6c32ff36b3de Mon Sep 17 00:00:00 2001
From: Sean Hatfield <seanhatfield5@gmail.com>
Date: Sat, 15 Feb 2025 09:37:42 +0800
Subject: [PATCH] fix agent builder move block bug (#3220)

patch bug allowing user to move block above vars in agent builder
---
 frontend/src/pages/Admin/AgentBuilder/BlockList/index.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend/src/pages/Admin/AgentBuilder/BlockList/index.jsx b/frontend/src/pages/Admin/AgentBuilder/BlockList/index.jsx
index f3d674aee..68fbf53b5 100644
--- a/frontend/src/pages/Admin/AgentBuilder/BlockList/index.jsx
+++ b/frontend/src/pages/Admin/AgentBuilder/BlockList/index.jsx
@@ -219,7 +219,7 @@ export default function BlockList({
                   block.type !== BLOCK_TYPES.FINISH &&
                   block.type !== BLOCK_TYPES.FLOW_INFO && (
                     <div className="flex items-center gap-1">
-                      {index > 1 && (
+                      {index > 2 && (
                         <button
                           onClick={(e) => {
                             e.stopPropagation();
-- 
GitLab