fix: inconsistent database content in exported PDF (#3385)

This commit is contained in:
xiaodong zuo
2023-07-27 05:26:53 +08:00
committed by GitHub
parent bb9908e1fa
commit 1e38d36161
2 changed files with 6 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ export async function savePDFFileAs(
buttonLabel: 'Save',
defaultPath: `${pageTitle}.pdf`,
message: 'Save Page as a PDF file',
filters: [{ name: 'PDF Files', extensions: ['pdf'] }],
}));
const filePath = ret.filePath;
if (ret.canceled || !filePath) {