Skip to content

Commit e5268af

Browse files
committed
fix(dashboard): wrong filename of panel’s screenshot
1 parent 87f9e2f commit e5268af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboard/src/components/panel/panel-render/use-download-panel-screenshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function useDownloadPanelScreenshot(panel: PanelRenderModelInstance) {
2121
style: { border: 'none', borderRadius: 0, transformOrigin: '0 0', transform: 'scale(2)' },
2222
})
2323
.then((blob: string) => {
24-
window.saveAs(blob, `${panel.title ? panel.title : panel.viz.type}.png`);
24+
window.saveAs(blob, `${panel.name ? panel.name : panel.viz.type}.png`);
2525
});
2626
};
2727
return { ref, downloadPanelScreenshot };

0 commit comments

Comments
 (0)