From be00661136a292e1d08820f35cd228cda6ec2e4d Mon Sep 17 00:00:00 2001 From: James Misson <71402529+jamesmisson@users.noreply.github.com> Date: Fri, 29 Nov 2024 12:12:45 +0000 Subject: [PATCH] fix empty required statement items in metadata component (#145) --- src/IIIFResource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IIIFResource.ts b/src/IIIFResource.ts index 4c34ef62..28eb4e50 100644 --- a/src/IIIFResource.ts +++ b/src/IIIFResource.ts @@ -161,7 +161,7 @@ export class IIIFResource extends ManifestResource { // fall back to attribution (if it exists) const attribution: PropertyValue = this.getAttribution(); - if (attribution) { + if (attribution && attribution.length) { requiredStatement = new LabelValuePair(this.options.locale); requiredStatement.value = attribution; }