refactor: last project may not exist

This commit is contained in:
Carlos Valente
2024-07-02 16:50:52 +02:00
committed by Carlos Valente
parent d94c1d4252
commit c944e77bc1
2 changed files with 4 additions and 4 deletions
@@ -56,7 +56,7 @@ export async function getProjectList(): Promise<ProjectFileListResponse> {
return {
files,
lastLoadedProject: removeFileExtension(lastLoadedProject),
lastLoadedProject: lastLoadedProject ? removeFileExtension(lastLoadedProject) : '',
};
}