Fix: block naming +1

This commit is contained in:
Emir Karabeg
2025-02-15 01:01:22 -08:00
parent 4fd1cac074
commit f4773d1c51
+1 -1
View File
@@ -228,7 +228,7 @@ function WorkflowContent() {
const id = crypto.randomUUID()
const name = `${blockConfig.name} ${
Object.values(blocks).filter((b) => b.id === data.type).length + 1
Object.values(blocks).filter((b) => b.type === data.type).length + 1
}`
addBlock(id, data.type, name, position)