🐛 (index.tsx): remove debugger statement to clean up code

♻️ (index.tsx): remove unnecessary trailing commas for consistency
🐛 (foldersStore.tsx): add optional chaining to handle potential undefined responses
♻️ (foldersStore.tsx): remove unnecessary trailing commas for consistency
This commit is contained in:
cristhianzl 2024-06-13 09:52:20 -03:00
commit 80634f9547
2 changed files with 2 additions and 3 deletions

View file

@ -86,7 +86,6 @@ export default function ChatView({
};
} catch (e) {
console.error(e);
debugger;
return {
isSend: false,
message: "Error parsing message",

View file

@ -16,11 +16,11 @@ export const useFolderStore = create<FoldersStoreType>((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,
);