Skip to content

Commit

Permalink
fix: prevent content from being transformed twice
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 3, 2019
1 parent 95c2077 commit ae1918c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/saber/src/Pages.ts
Expand Up @@ -196,7 +196,7 @@ export class Pages extends Map<string, Page> {
return page as Page
}

fileToPage(file: FileInfo): Page {
fileToPage(file: FileInfo): CreatePageInput {
const relativePath = slash(file.relative)
const absolutePath = slash(file.absolute)
const parsedFileName = FILE_NAME_REGEXP.exec(
Expand All @@ -223,7 +223,7 @@ export class Pages extends Map<string, Page> {
createdAt: parsedFileName[2] || file.birthtime,
updatedAt: file.mtime
}
return this.normalizePage(pageInput)
return pageInput
}

createPage(pageInput: CreatePageInput) {
Expand Down

0 comments on commit ae1918c

Please sign in to comment.