diff --git a/back/api/script.ts b/back/api/script.ts index 47376d1d..d4a1f7fe 100644 --- a/back/api/script.ts +++ b/back/api/script.ts @@ -86,7 +86,7 @@ export default (app: Router) => { try { const filePath = join( config.scriptPath, - req.query.path as string, + req.query.path as string | undefined || '', req.params.file, ); const content = getFileContentByName(filePath);