Skip to content

Commit 5e75bfd

Browse files
authored
fix(mergeDraft): push file if it is missing in dbFiles (#173)
1 parent fc748ad commit 5e75bfd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/runtime/utils/files.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ export const mergeDraft = (dbFiles: PreviewFile[] = [], draftAdditions: DraftFil
4949
if (file) {
5050
Object.assign(file, { path: addition.path, parsed: addition.parsed })
5151
}
52+
else {
53+
mergedFiles.push({ path: addition.path, parsed: addition.parsed })
54+
}
5255
}
5356
}
5457

0 commit comments

Comments
 (0)