From ba99a77274523d889546ec7917bde34acdab67f3 Mon Sep 17 00:00:00 2001 From: Nicolas Echezarreta Date: Tue, 22 Oct 2024 13:37:37 -0300 Subject: [PATCH] fix small bugs --- packages/preload/src/modules/settings.ts | 2 +- packages/renderer/src/components/LearnPage/component.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/preload/src/modules/settings.ts b/packages/preload/src/modules/settings.ts index 8d14394..ccf0d9b 100644 --- a/packages/preload/src/modules/settings.ts +++ b/packages/preload/src/modules/settings.ts @@ -13,7 +13,7 @@ export function getDefaultScenesPath() { export async function getScenesPath() { const config = await getConfig(); - return config.settings.scenesPath ?? (await getDefaultScenesPath()); + return config.settings?.scenesPath ?? (await getDefaultScenesPath()); } export function isValidUpdateStrategy(value?: string): value is DEPENDENCY_UPDATE_STRATEGY { diff --git a/packages/renderer/src/components/LearnPage/component.tsx b/packages/renderer/src/components/LearnPage/component.tsx index 55c4f6c..cf8b8de 100644 --- a/packages/renderer/src/components/LearnPage/component.tsx +++ b/packages/renderer/src/components/LearnPage/component.tsx @@ -65,7 +65,7 @@ export function LearnPage() {