Skip to content

Commit

Permalink
Update preview_image.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dobri1408 authored Aug 21, 2024
1 parent e5ee11c commit bb20a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middlewares/preview_image.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const preview_image = (middlewares) => [
if (
contentData?.preview_image &&
contentData?.preview_image?.filename !==
'preview_image_generated_map_simple.png'
'preview_image_generated_tableau.png'
) {
return next(action);
}
Expand All @@ -33,7 +33,7 @@ export const preview_image = (middlewares) => [
data: action.request.data.tableau_visualization.preview.split(',')[1],
encoding: 'base64',
'content-type': 'image/png',
filename: 'preview_image_generated_map_simple.png',
filename: 'preview_image_generated_tableau.png',
},
preview_image_saved: true,
};
Expand Down

0 comments on commit bb20a02

Please sign in to comment.