Skip to content
This repository was archived by the owner on Jan 7, 2020. It is now read-only.

Commit a15539c

Browse files
committed
ie11 fixes [deploy pr]
1 parent cb75848 commit a15539c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function getCSV(url, name){
105105
a.setAttribute('download', name)
106106
document.body.appendChild(a)
107107
a.click()
108-
a.remove()
108+
document.body.removeChild(a)
109109
a = null
110110
}
111111

src/geo/Geography.jsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class Geography extends Component {
8989
else {
9090
for(let j=0; j<selected.length; j++){
9191
if(selected[j].value === options[i].value){
92-
selected = [selected.slice(0,j), selected.slice(j+1)].flat()
92+
selected = selected.slice(0,j).concat(selected.slice(j+1))
9393
break
9494
} else if (j === selected.length - 1){
9595
trimmed.push(options[i])
@@ -178,9 +178,6 @@ class Geography extends Component {
178178
})
179179
}
180180

181-
states = [...new Set(states)]
182-
msamds = [...new Set(msamds)]
183-
184181
return this.setStateAndRoute({
185182
states,
186183
msamds,

0 commit comments

Comments
 (0)