Skip to content

Commit 1e59d74

Browse files
feat: adding page name in print file name
1 parent 1990112 commit 1e59d74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/safeDoc-react/DocPrinter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function DocPrinter({ docKey, setup }: DocPrinterProps) {
6262
if (!svg) {
6363
return;
6464
}
65-
const name = `${selected.type.type}_v${selected.type.version}_${selected.docKey}_${formatTime(selected.time)}.png`;
65+
const name = `${selected.type.type}_v${selected.type.version}_${selected.docKey}_${formatTime(selected.time)}_${page}.png`;
6666
downloadSvgImage(svg, name, {
6767
scaleFactor: 4,
6868
}).then(

0 commit comments

Comments
 (0)