Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankbrgowda committed Sep 12, 2023
1 parent e86c7ee commit 0f58fb9
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,10 @@ export class DiscontinuousLocationChange extends FeatureChange {
if (!feature) {
throw new Error(`Could not find feature with identifier "${changedId}"`)
}
const change = this.changes[idx]
const { end, start } = change

const { end, start } = this.changes[idx]
if (start) {
feature.setCDSDiscontinuousLocationStart(start.newStart, start.index)
}

if (end) {
feature.setCDSDiscontinuousLocationEnd(end.newEnd, end.index)
}
Expand Down

0 comments on commit 0f58fb9

Please sign in to comment.