mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-08 22:48:14 -05:00
Do not propagate state change unless workflow name changed
This commit is contained in:
@@ -91,8 +91,11 @@ export function ControlBar() {
|
||||
}
|
||||
|
||||
const handleNameSubmit = () => {
|
||||
if (activeWorkflowId && editedName.trim()) {
|
||||
updateWorkflow(activeWorkflowId, { name: editedName.trim() })
|
||||
if (activeWorkflowId) {
|
||||
const trimmedName = editedName.trim()
|
||||
if (trimmedName && trimmedName !== workflows[activeWorkflowId].name) {
|
||||
updateWorkflow(activeWorkflowId, { name: trimmedName })
|
||||
}
|
||||
setIsEditing(false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user