Skip to content

Commit 05476d5

Browse files
authored
Merge pull request #512 from mapbox/v0.78.0
V0.78.0
2 parents c445fc3 + d446a68 commit 05476d5

File tree

4 files changed

+231
-636
lines changed

4 files changed

+231
-636
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Log of changes since the 2.0 version
44

5+
### 0.76.1
6+
- Update changeset-map to 1.9.0
7+
- Update browserslist
8+
59
### 0.76.0
610
- Change links on user tab to filter by uid instead of username
711
- Add link to user that reviewed the PR on the changeset list

package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "osmcha-frontend",
3-
"version": "0.76.0",
3+
"version": "0.78.0",
44
"license": "ISC",
55
"engines": {
66
"node": ">=7.0"
@@ -14,10 +14,10 @@
1414
},
1515
"dependencies": {
1616
"@mapbox/mapbox-gl-draw": "^1.1.2",
17-
"@turf/bbox": "^6.0.1",
18-
"@turf/simplify": "^5.1.5",
17+
"@turf/bbox": "^6.3.0",
18+
"@turf/simplify": "^6.3.0",
1919
"animate.css": "^3.7.2",
20-
"changeset-map": "^1.7.0",
20+
"changeset-map": "^1.9.1",
2121
"date-input-polyfill": "^2.14.0",
2222
"history": "^4.10.1",
2323
"immutable": "^3.8.2",
@@ -88,8 +88,7 @@
8888
},
8989
"browserslist": [
9090
">0.2%",
91-
"not dead",
92-
"not ie <= 11",
91+
"not ie 11",
9392
"not op_mini all"
9493
]
9594
}

src/components/changeset/geometry_changes.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class GeometryChanges extends React.PureComponent<void, propsType> {
111111
}
112112

113113
render() {
114-
const changeReport = [];
114+
let changeReport = [];
115115
if (
116116
this.state &&
117117
this.state.changes &&
@@ -124,17 +124,16 @@ class GeometryChanges extends React.PureComponent<void, propsType> {
124124
changeReport.push([tag, featureIDs])
125125
);
126126
}
127+
changeReport = changeReport.filter(changeType => changeType[1].length);
127128
return (
128129
<div className="px12 py6">
129130
<h2 className="txt-m txt-uppercase txt-bold mr6 mb3">
130131
Geometry Changes
131132
</h2>
132133
{changeReport.length ? (
133-
changeReport
134-
.filter(changeType => changeType[1].length)
135-
.map((changeType, k) => (
136-
<GeometryChangesItem key={k} action={changeType} />
137-
))
134+
changeReport.map((changeType, k) => (
135+
<GeometryChangesItem key={k} action={changeType} />
136+
))
138137
) : (
139138
<span>No geometry changes in this changeset.</span>
140139
)}

0 commit comments

Comments
 (0)