Skip to content

Commit

Permalink
Add missing key props to PrintSelection components
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Nov 27, 2024
1 parent e39dbde commit b75b0ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qwc2",
"version": "2024.11.26-master",
"version": "2024.11.27-master",
"description": "QGIS Web Client 2 core",
"author": "Sourcepole AG",
"license": "BSD-2-Clause",
Expand Down
4 changes: 2 additions & 2 deletions plugins/MapExport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,10 @@ class MapExport extends React.Component {
height: pageSize.height
};
return (<PrintSelection allowRotation={false} allowScaling={this.props.allowedScales !== false}
center={this.props.map.center} fixedFrame={frame} geometryChanged={this.geometryChanged} scale={this.state.scale}
center={this.props.map.center} fixedFrame={frame} geometryChanged={this.geometryChanged} key="PrintSelection" scale={this.state.scale}
/>);
} else {
return (<PrintSelection allowRotation={false} geometryChanged={this.geometryChanged} />);
return (<PrintSelection allowRotation={false} geometryChanged={this.geometryChanged} key="PrintSelection" />);
}
};
render() {
Expand Down
1 change: 1 addition & 0 deletions plugins/Print.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ class Print extends React.Component {
center={this.state.center || this.props.map.center}
fixedFrame={frame}
geometryChanged={this.geometryChanged}
key="PrintSelection"
printSeriesChanged={this.printSeriesChanged}
printSeriesEnabled={this.props.displayPrintSeries && this.state.printSeriesEnabled}
printSeriesOverlap={this.state.printSeriesOverlap / 100}
Expand Down

0 comments on commit b75b0ee

Please sign in to comment.