mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-08 22:48:14 -05:00
Do not propogate state change unless block name actually changed
This commit is contained in:
@@ -70,10 +70,11 @@ export function WorkflowBlock({
|
||||
}
|
||||
|
||||
const handleNameSubmit = () => {
|
||||
if (editedName.trim()) {
|
||||
updateBlockName(id, editedName.trim())
|
||||
setIsEditing(false)
|
||||
const trimmedName = editedName.trim()
|
||||
if (trimmedName && trimmedName !== name) {
|
||||
updateBlockName(id, trimmedName)
|
||||
}
|
||||
setIsEditing(false)
|
||||
}
|
||||
|
||||
const handleNameKeyDown = (e: React.KeyboardEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user