diff --git a/src/renderer/plugins/document-history-stack.ts b/src/renderer/plugins/document-history-stack.ts index fc869b7b..d2ea68d7 100644 --- a/src/renderer/plugins/document-history-stack.ts +++ b/src/renderer/plugins/document-history-stack.ts @@ -55,7 +55,7 @@ export default { if (file) { if (!ctx.doc.isSameFile(stack[idx], file)) { stack.splice(idx + 1, stack.length) - stack.push({ type: file.type, repo: file.repo, name: file?.name, path: file?.path }) + stack.push({ type: file.type, repo: file.repo, name: file.name, path: file.path }) idx = stack.length - 1 } }