update add flow function to show import flow name

This commit is contained in:
anovazzi1 2023-04-18 15:14:08 -03:00
commit d28d73a37e

View file

@ -144,7 +144,7 @@ export function TabsProvider({ children }: { children: ReactNode }) {
// Create a new flow with a default name if no flow is provided.
let newFlow: FlowType = {
description,
name: "New Flow",
name: flow?.name??"New Flow",
id: id.toString(),
data,
chat: flow ? flow.chat : [],