Skip to content

Commit

Permalink
Revert regression in gmf print component
Browse files Browse the repository at this point in the history
  • Loading branch information
adube committed Jan 22, 2020
1 parent 4a2cd16 commit 091a113
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions contribs/gmf/src/print/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,12 +779,8 @@ export class PrintController {

this.updateCustomFields_();

const hasLegend = this.layoutInfo.attributes.includes('legend');
if (hasLegend) {
this.fieldValues.legend = this.fieldValues.legend;
} else {
delete this.fieldValues.legend;
}
this.layoutInfo.legend = this.layoutInfo.attributes.includes('legend') ?
this.fieldValues['legend'] !== false : undefined;
this.layoutInfo.scales = clientInfo.scales || [];
this.layoutInfo.dpis = clientInfo.dpiSuggestions || [];

Expand Down

0 comments on commit 091a113

Please sign in to comment.