mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 06:04:05 +00:00
refactor: last project may not exist
This commit is contained in:
committed by
Carlos Valente
parent
d94c1d4252
commit
c944e77bc1
@@ -56,7 +56,7 @@ export async function getProjectList(): Promise<ProjectFileListResponse> {
|
||||
|
||||
return {
|
||||
files,
|
||||
lastLoadedProject: removeFileExtension(lastLoadedProject),
|
||||
lastLoadedProject: lastLoadedProject ? removeFileExtension(lastLoadedProject) : '',
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user