Skip to content

Commit

Permalink
even more one liner
Browse files Browse the repository at this point in the history
  • Loading branch information
smcalilly committed Nov 3, 2023
1 parent f06f233 commit 4d88fa6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions asset_dashboard/static/js/components/maps/SelectAssetsMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ function SelectAssetsMap(props) {
}

function saveGeometries() {
let existingIDs = []

if (existingGeoms?.features) {
existingIDs = existingGeoms.features.map(geom => geom.properties.asset_id)
}
const existingIDs = existingGeoms?.features ? existingGeoms.features.map(geom => geom.properties.asset_id) : []

let data = geomsToSave['features']
.map(feature => {
Expand Down

0 comments on commit 4d88fa6

Please sign in to comment.