mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
Fix: block naming +1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user