From 9d28e94313055572cb7eee97684483e37df8a57e Mon Sep 17 00:00:00 2001 From: Dan Granville Date: Thu, 14 Dec 2023 13:33:52 +0000 Subject: [PATCH] fix WADM target.source Due to a typo, source manifest was not being injected in target.source.partOf. --- src/WebAnnotation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index 22bff18..61309cf 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -81,11 +81,11 @@ export default class WebAnnotation { /** */ source() { let source = this.canvasId; - if (this.manifest) { + if (this.manifestId) { source = { id: this.canvasId, partOf: { - id: this.manifest.id, + id: this.manifestId, type: 'Manifest', }, type: 'Canvas',