From 3785c7e61002b3137a1b2aa6755dd57f9674e58d Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 8 Jun 2023 16:54:46 -0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix(tabsContext.tsx):=20add?= =?UTF-8?q?=20null=20check=20for=20flow.data=20to=20prevent=20TypeError=20?= =?UTF-8?q?The=20fix=20adds=20a=20null=20check=20for=20flow.data=20to=20pr?= =?UTF-8?q?event=20a=20TypeError=20when=20accessing=20the=20edges=20proper?= =?UTF-8?q?ty.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/contexts/tabsContext.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/src/contexts/tabsContext.tsx b/src/frontend/src/contexts/tabsContext.tsx index 1d7ad43d5..2c3c0327d 100644 --- a/src/frontend/src/contexts/tabsContext.tsx +++ b/src/frontend/src/contexts/tabsContext.tsx @@ -90,6 +90,9 @@ export function TabsProvider({ children }: { children: ReactNode }) { if (cookie && Object.keys(templates).length > 0) { let cookieObject: LangFlowState = JSON.parse(cookie); cookieObject.flows.forEach((flow) => { + if (!flow.data) { + return; + } flow.data.edges.forEach((edge) => { edge.className = ""; edge.style = { stroke: "#555555" }; From 901a7c0696140e614845bc98b55cacd335059bfb Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 8 Jun 2023 16:56:35 -0300 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=96=20chore(pyproject.toml):=20bum?= =?UTF-8?q?p=20up=20version=20to=200.0.87=20The=20version=20number=20in=20?= =?UTF-8?q?the=20pyproject.toml=20file=20has=20been=20updated=20from=200.0?= =?UTF-8?q?.86=20to=200.0.87.=20This=20is=20a=20chore=20commit=20as=20it?= =?UTF-8?q?=20does=20not=20introduce=20any=20new=20features=20or=20bug=20f?= =?UTF-8?q?ixes,=20but=20only=20updates=20the=20version=20number.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 21270bc34..819ab724a 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 = [