Skip to content

Commit

Permalink
change mark modified
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankbrgowda committed Oct 31, 2023
1 parent a21e696 commit 41232ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class DiscontinuousLocationEndChange extends FeatureChange {
}

try {
topLevelFeature.markModified('discontinuousLocations')
topLevelFeature.markModified('children')
await topLevelFeature.save()
} catch (error) {
logger.debug?.(`*** FAILED: ${error}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class DiscontinuousLocationStartChange extends FeatureChange {
}

try {
topLevelFeature.markModified('discontinuousLocations')
topLevelFeature.markModified('children')
await topLevelFeature.save()
} catch (error) {
logger.debug?.(`*** FAILED: ${error}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ export abstract class Glyph {
}
}
} else {
location += `${feature.start}-${feature.end},..,${start}-${end}`
const [firstLoc] = discontinuousLocations
location += `${firstLoc.start}-${firstLoc.end},..,${start}-${end}`
}
} else {
;({ end, length, start } = feature)
Expand Down

0 comments on commit 41232ca

Please sign in to comment.