Skip to content
Snippets Groups Projects
Unverified Commit 60487ff3 authored by Jack Reed's avatar Jack Reed Committed by GitHub
Browse files

Merge pull request #3238 from robcast/patch-1

Add target.source (without id) as valid target.
parents 982cd2c0 9e750d39
Branches
Tags
No related merge requests found
......@@ -29,7 +29,7 @@ export default class AnnotationItem {
case 'string':
return target.replace(/#?xywh=(.*)$/, '');
case 'object':
return target.id || (target.source && target.source.id);
return (target.source && target.source.id) || target.source || target.id;
default:
return null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment