Skip to content

Commit

Permalink
fix empty required statement items in metadata component (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmisson authored Nov 29, 2024
1 parent 56b02cb commit be00661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IIIFResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit be00661

Please sign in to comment.