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

Commit

Permalink
ie11 fixes [deploy pr]
Browse files Browse the repository at this point in the history
  • Loading branch information
wpears committed Sep 3, 2019
1 parent cb75848 commit a15539c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function getCSV(url, name){
a.setAttribute('download', name)
document.body.appendChild(a)
a.click()
a.remove()
document.body.removeChild(a)
a = null
}

Expand Down
5 changes: 1 addition & 4 deletions src/geo/Geography.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Geography extends Component {
else {
for(let j=0; j<selected.length; j++){
if(selected[j].value === options[i].value){
selected = [selected.slice(0,j), selected.slice(j+1)].flat()
selected = selected.slice(0,j).concat(selected.slice(j+1))
break
} else if (j === selected.length - 1){
trimmed.push(options[i])
Expand Down Expand Up @@ -178,9 +178,6 @@ class Geography extends Component {
})
}

states = [...new Set(states)]
msamds = [...new Set(msamds)]

return this.setStateAndRoute({
states,
msamds,
Expand Down

0 comments on commit a15539c

Please sign in to comment.