Skip to content

Commit

Permalink
[frontend] replaced . with [dot] in filename when exporting dashboard…
Browse files Browse the repository at this point in the history
… in json (#8268)
  • Loading branch information
stefan1anuby committed Sep 8, 2024
1 parent b29748b commit 82d9102
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const handleExportJson = (workspace: workspaceToExport) => {
if (result.workspace) {
const blob = new Blob([result.workspace.toConfigurationExport], { type: 'text/json' });
const [day, month, year] = new Date().toLocaleDateString('fr-FR').split('/');
const fileName = `${year}${month}${day}_octi_dashboard_${workspace.name}`;
const fileName = `${year}${month}${day}_octi_dashboard_${workspace.name.replace(/\./g, '[dot]')}`;
fileDownload(blob, fileName, 'application/json');
}
});
Expand Down

0 comments on commit 82d9102

Please sign in to comment.