diff --git a/src/AnnotationCreation.js b/src/AnnotationCreation.js index dbd0b53f5ef7cff39e8ed9bfc4d493cbfdbe4ad0..f2187543ddda964523e0bab0621ad8f71271609a 100644 --- a/src/AnnotationCreation.js +++ b/src/AnnotationCreation.js @@ -135,12 +135,10 @@ class AnnotationCreation extends Component { lineWeightPopoverOpen: false, popoverAnchorEl: null, popoverLineWeightAnchorEl: null, - svg: null, textBody: '', textEditorStateBustingKey: 0, // eslint-disable-next-line sort-keys,max-len valueTime: [0, 1], - xywh: null, ...annoState, valuetextTime: '', mediaVideo: null, diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index c1403648400613f7d42495d03534ff774cf373b5..55a4d80f5292381ae5226436bfa81605af7c4ae2 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -88,7 +88,8 @@ export default class WebAnnotation { .map((kv) => `${kv[0]}=${kv[1]}`) .join('&'), }); - }target.selector = selectors.length === 1 ? selectors[0] : selectors; + } + target.selector = selectors.length === 1 ? selectors[0] : selectors; return target; }