diff --git a/packages/apollo-shared/src/Changes/DiscontinuousLocationEndChange.ts b/packages/apollo-shared/src/Changes/DiscontinuousLocationEndChange.ts index c08e55ac..2374eb33 100644 --- a/packages/apollo-shared/src/Changes/DiscontinuousLocationEndChange.ts +++ b/packages/apollo-shared/src/Changes/DiscontinuousLocationEndChange.ts @@ -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}`) diff --git a/packages/apollo-shared/src/Changes/DiscontinuousLocationStartChange.ts b/packages/apollo-shared/src/Changes/DiscontinuousLocationStartChange.ts index cecc7b82..9b7953d8 100644 --- a/packages/apollo-shared/src/Changes/DiscontinuousLocationStartChange.ts +++ b/packages/apollo-shared/src/Changes/DiscontinuousLocationStartChange.ts @@ -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}`) diff --git a/packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/glyphs/Glyph.ts b/packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/glyphs/Glyph.ts index bc427ad9..3e22037d 100644 --- a/packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/glyphs/Glyph.ts +++ b/packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/glyphs/Glyph.ts @@ -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)