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 { ...@@ -157,18 +157,16 @@ class TrackChangesProvider {
// TODO -- handle multiple delete and add annotations // TODO -- handle multiple delete and add annotations
getAnnotationByStatus (status) { getAnnotationByStatus (status) {
const annotations = this.getAllExistingTrackAnnotations() const annotations = this.getAllExistingTrackAnnotations()
console.log('annos', annotations) const annotationsByStatus = filter(annotations, (annotation) => {
const annos = filter(annotations, (annotation) => {
return annotation.status === status return annotation.status === status
}) })
return annos[0] return annotationsByStatus[0]
} }
getExistingAnnotation () { getExistingAnnotation () {
const documentSession = this.getDocumentSession() const documentSession = this.getDocumentSession()
const selectionState = documentSession.getSelectionState() const selectionState = documentSession.getSelectionState()
const annotations = selectionState.getAnnotationsForType('track-change') const annotations = selectionState.getAnnotationsForType('track-change')
console.log(annotations)
return annotations[0] 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