🐛 fix(tabsContext.tsx): handle null or undefined flow.description to prevent potential errors
This commit is contained in:
parent
d9073aba39
commit
ddd480fb23
1 changed files with 1 additions and 1 deletions
|
|
@ -584,7 +584,7 @@ export function TabsProvider({ children }: { children: ReactNode }) {
|
||||||
flowData: ReactFlowJsonObject | null,
|
flowData: ReactFlowJsonObject | null,
|
||||||
flow: FlowType
|
flow: FlowType
|
||||||
) => ({
|
) => ({
|
||||||
description: flow.description ?? getRandomDescription(),
|
description: flow?.description ?? getRandomDescription(),
|
||||||
name: flow?.name ?? getRandomName(),
|
name: flow?.name ?? getRandomName(),
|
||||||
data: flowData,
|
data: flowData,
|
||||||
id: "",
|
id: "",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue