diff --git a/src/AnnotationCreation.js b/src/AnnotationCreation.js index da082e566424744773286f62832023e860948a72..4f3a31f86c205333cd33d30f6961552c138af748 100644 --- a/src/AnnotationCreation.js +++ b/src/AnnotationCreation.js @@ -443,7 +443,7 @@ class AnnotationCreation extends Component { return ( <CompanionWindow - title={title ? title : 'New annotation'} + title={title ? title : 'totos'} windowId={windowId} id={id} > diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index b2fb9c078fb0ce1d9c5a06cd0b43d2ae126f71ab..d9911a9f372ac0aa75a0ec9b8eeb3a1ee5fd53b2 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -89,14 +89,7 @@ export default class WebAnnotation { .map((kv) => `${kv[0]}=${kv[1]}`) .join('&'), }); - } - if(target.selector){ - target.selector = selectors.length === 1 ? selectors[0] : selectors; - target = { - selector: target.selector, - source: this.source(), - } - } + }target.selector = selectors.length === 1 ? selectors[0] : selectors; return target; }