diff --git a/src/Terminal/commands/ls.tsx b/src/Terminal/commands/ls.tsx index 29fb48f70..95a35b30d 100644 --- a/src/Terminal/commands/ls.tsx +++ b/src/Terminal/commands/ls.tsx @@ -132,7 +132,7 @@ export function ls(args: (string | number | boolean)[], server: BaseServer): voi )(); const fullPath = combinePath(baseDirectory, props.path); function onClick() { - const code = server.scripts.get(props.path)?.content ?? ""; + const code = server.scripts.get(fullPath)?.content ?? ""; const map = new Map(); map.set(fullPath, code); Router.toScriptEditor(map);