Skip to content
Snippets Groups Projects
Commit db8493e2 authored by john's avatar john
Browse files

cleanup

parent 6131a657
No related branches found
No related tags found
No related merge requests found
......@@ -157,18 +157,16 @@ class TrackChangesProvider {
// TODO -- handle multiple delete and add annotations
getAnnotationByStatus (status) {
const annotations = this.getAllExistingTrackAnnotations()
console.log('annos', annotations)
const annos = filter(annotations, (annotation) => {
const annotationsByStatus = filter(annotations, (annotation) => {
return annotation.status === status
})
return annos[0]
return annotationsByStatus[0]
}
getExistingAnnotation () {
const documentSession = this.getDocumentSession()
const selectionState = documentSession.getSelectionState()
const annotations = selectionState.getAnnotationsForType('track-change')
console.log(annotations)
return annotations[0]
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment