Skip to content

Commit

Permalink
fix: properly resolve saved REPLs (#341)
Browse files Browse the repository at this point in the history
fixes #319
  • Loading branch information
dummdidumm authored Oct 11, 2024
1 parent 3576454 commit 0952c73
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ export async function GET({ fetch, params }) {
// @ts-ignore
owner: app.userid,
relaxed: false,
// @ts-expect-error app.files has a `source` property
components: munge(app.files)
components: app.files!.map((file) => {
const dot = file.name.lastIndexOf('.');
let name = file.name.slice(0, dot);
let type = file.name.slice(dot + 1);
return { name, type, source: file.source };
})
});
}

Expand Down

0 comments on commit 0952c73

Please sign in to comment.