diff --git a/pyproject.toml b/pyproject.toml index 27fddc973..4973bea4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langflow" -version = "0.0.86" +version = "0.0.87" description = "A Python package with a built-in web application" authors = ["Logspace "] maintainers = [ diff --git a/src/frontend/src/contexts/tabsContext.tsx b/src/frontend/src/contexts/tabsContext.tsx index a8dbfe2e5..fe53e277e 100644 --- a/src/frontend/src/contexts/tabsContext.tsx +++ b/src/frontend/src/contexts/tabsContext.tsx @@ -89,8 +89,10 @@ export function TabsProvider({ children }: { children: ReactNode }) { let cookie = window.localStorage.getItem("tabsData"); if (cookie && Object.keys(templates).length > 0) { let cookieObject: LangFlowState = JSON.parse(cookie); - try { cookieObject.flows.forEach((flow) => { + if (!flow.data) { + return; + } flow.data.edges.forEach((edge) => { edge.className = ""; edge.style = { stroke: "#555555" }; @@ -124,8 +126,6 @@ export function TabsProvider({ children }: { children: ReactNode }) { setTabIndex(cookieObject.tabIndex); setFlows(cookieObject.flows); setId(cookieObject.id); - } catch (e) { - console.log(e); } } }, [templates]);