Skip to content

Commit

Permalink
fix(UI): refactor UI component for performance #closes2144
Browse files Browse the repository at this point in the history
  • Loading branch information
kaminderpal committed May 22, 2024
1 parent 74cedb2 commit cc1fc41
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export default function ExportModal(): JSX.Element {
.toPng(legendContainer)
.then((dataUrl) => {
setIsLegendLoading(false);
// TODO: we need to render the legend even if its hidden.
// Note: When legend is hidden in appbar
if (dataUrl.indexOf('base64') !== -1) {
const img = new Image();
Expand Down

0 comments on commit cc1fc41

Please sign in to comment.