digirati-annotation-redux
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -22,6 +22,6 @@ import { connect } from 'react-redux'; | ||
wholeCanvasAnnotations: annotationList ? annotationList.filter(function (anno) { | ||
return anno.target && !anno.target.expanded; | ||
return anno.selector && !anno.selector.expanded; | ||
}) : [], | ||
regionAnnotations: annotationList ? annotationList.filter(function (anno) { | ||
return anno.target && anno.target.expanded; | ||
return anno.selector && anno.selector.expanded; | ||
}) : [], | ||
@@ -28,0 +28,0 @@ resourceForm: currentResourceTemplate ? getForm(currentResourceTemplate) : null, |
@@ -49,3 +49,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
return _extends({}, annotation, { | ||
selector: AnnotationSelector.parse(annotation.selector) | ||
selector: AnnotationSelector.parse(annotation.target) | ||
}); | ||
@@ -52,0 +52,0 @@ }); |
@@ -34,6 +34,6 @@ 'use strict'; | ||
wholeCanvasAnnotations: annotationList ? annotationList.filter(function (anno) { | ||
return anno.target && !anno.target.expanded; | ||
return anno.selector && !anno.selector.expanded; | ||
}) : [], | ||
regionAnnotations: annotationList ? annotationList.filter(function (anno) { | ||
return anno.target && anno.target.expanded; | ||
return anno.selector && anno.selector.expanded; | ||
}) : [], | ||
@@ -40,0 +40,0 @@ resourceForm: currentResourceTemplate ? (0, _resourceTemplateQuery.getForm)(currentResourceTemplate) : null, |
@@ -67,3 +67,3 @@ 'use strict'; | ||
return (0, _extends3.default)({}, annotation, { | ||
selector: _index.AnnotationSelector.parse(annotation.selector) | ||
selector: _index.AnnotationSelector.parse(annotation.target) | ||
}); | ||
@@ -70,0 +70,0 @@ }); |
{ | ||
"name": "digirati-annotation-redux", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Describe annotation-redux here", | ||
@@ -5,0 +5,0 @@ "main": "es/index.js", |
90482