fixed bug: chatflow name is being replaced by old name

This commit is contained in:
Rahul kushwaha
2023-05-07 01:49:23 +05:30
parent ca0e2b7157
commit 2d36ef6b18
+1 -1
View File
@@ -89,7 +89,7 @@ const CanvasHeader = ({ chatflow, handleSaveFlow, handleDeleteFlow, handleLoadFl
}
const onSaveChatflowClick = () => {
if (chatflow.id) handleSaveFlow(chatflow.name)
if (chatflow.id) handleSaveFlow(flowName)
else setFlowDialogOpen(true)
}