From 80634f95479164b240e3662f32d3cfb26f6cd4b0 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Thu, 13 Jun 2024 09:52:20 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(index.tsx):=20remove=20debugger?= =?UTF-8?q?=20statement=20to=20clean=20up=20code=20=E2=99=BB=EF=B8=8F=20(i?= =?UTF-8?q?ndex.tsx):=20remove=20unnecessary=20trailing=20commas=20for=20c?= =?UTF-8?q?onsistency=20=F0=9F=90=9B=20(foldersStore.tsx):=20add=20optiona?= =?UTF-8?q?l=20chaining=20to=20handle=20potential=20undefined=20responses?= =?UTF-8?q?=20=E2=99=BB=EF=B8=8F=20(foldersStore.tsx):=20remove=20unnecess?= =?UTF-8?q?ary=20trailing=20commas=20for=20consistency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/modals/IOModal/components/chatView/index.tsx | 1 - src/frontend/src/stores/foldersStore.tsx | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/modals/IOModal/components/chatView/index.tsx b/src/frontend/src/modals/IOModal/components/chatView/index.tsx index 736d21a6f..3c3ae0fbf 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/index.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/index.tsx @@ -86,7 +86,6 @@ export default function ChatView({ }; } catch (e) { console.error(e); - debugger; return { isSend: false, message: "Error parsing message", diff --git a/src/frontend/src/stores/foldersStore.tsx b/src/frontend/src/stores/foldersStore.tsx index e72610987..b7299d192 100644 --- a/src/frontend/src/stores/foldersStore.tsx +++ b/src/frontend/src/stores/foldersStore.tsx @@ -16,11 +16,11 @@ export const useFolderStore = create((set, get) => ({ get().setLoading(true); getFolders().then( (res) => { - const foldersWithoutStarterProjects = res.filter( + const foldersWithoutStarterProjects = res?.filter( (folder) => folder.name !== STARTER_FOLDER_NAME, ); - const starterProjects = res.find( + const starterProjects = res?.find( (folder) => folder.name === STARTER_FOLDER_NAME, );