fix agent builder move block bug (#3220)

patch bug allowing user to move block above vars in agent builder
This commit is contained in:
Sean Hatfield 2025-02-15 09:37:42 +08:00 committed by GitHub
parent 6ffdbf074d
commit aba910de70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();