Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export function CreateApolloAnnotation({
})
}

await submitChange(change)
await submitChange(change, annotationFeature._id)
}

const copyTranscriptsToDestinationGene = async (
Expand All @@ -397,7 +397,8 @@ export function CreateApolloAnnotation({
assembly: assembly.name,
addedFeature: transcript,
})
await submitChange(change)
// selects the last added transcript
await submitChange(change, transcriptId)
}
}

Expand Down Expand Up @@ -425,8 +426,7 @@ export function CreateApolloAnnotation({
},
},
})
await submitChange(change)
apolloSessionModel.apolloSetSelectedFeature(newGeneId)
await submitChange(change, newGeneId)
}

const extendSelectedDestinationFeatureLocation = async (
Expand Down Expand Up @@ -468,8 +468,14 @@ export function CreateApolloAnnotation({

const submitChange = async (
change: AddFeatureChange | LocationStartChange | LocationEndChange,
selectedFeatureId?: string,
) => {
await apolloSessionModel.apolloDataStore.changeManager.submit(change)
await apolloSessionModel.apolloDataStore.changeManager
.submit(change)
.then(() => {
// Selects the newly added/modified feature
apolloSessionModel.apolloSetSelectedFeature(selectedFeatureId)
})
}

const handleCreateNewGeneChange = (
Expand Down