From 4c71b1d17ff6d1ca012e909ede69f13611fe6b6d Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Sun, 28 May 2023 20:34:01 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=87=20chore(tabsContext.tsx):=20commen?= =?UTF-8?q?t=20out=20code=20that=20was=20causing=20issues=20with=20file=20?= =?UTF-8?q?upload=20The=20code=20that=20was=20causing=20issues=20with=20fi?= =?UTF-8?q?le=20upload=20has=20been=20commented=20out=20for=20now.=20The?= =?UTF-8?q?=20code=20was=20resetting=20the=20content=20of=20a=20file,=20wh?= =?UTF-8?q?ich=20was=20causing=20issues=20with=20the=20file=20upload.?= 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, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/contexts/tabsContext.tsx b/src/frontend/src/contexts/tabsContext.tsx index 6db425599..0c69a6931 100644 --- a/src/frontend/src/contexts/tabsContext.tsx +++ b/src/frontend/src/contexts/tabsContext.tsx @@ -63,7 +63,8 @@ export function TabsProvider({ children }: { children: ReactNode }) { console.log(node.data.node.template[key].type); if (node.data.node.template[key].type === "file") { console.log(node.data.node.template[key]); - node.data.node.template[key].content = ""; + // ! Commenting this out for now, as it is causing issues with the file upload + // node.data.node.template[key].content = ""; } }); });