Skip to content

Commit

Permalink
Check if canvas label exists
Browse files Browse the repository at this point in the history
  • Loading branch information
martimpassos committed Feb 6, 2024
1 parent 3568f36 commit 7524dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Resource {
manifest.createCanvas(canvasId, (canvas) => {
canvas.width = photo.width;
canvas.height = photo.height;
canvas.addLabel(photo.label);
canvas.addLabel(photo.label || "");
canvas.addThumbnail({
id:
`${this.baseId}/${photo.checksum}/full/${thumbWidth},${thumbHeight}/0/default${path.extname(photo.path) || '.jpg'}`,
Expand Down

0 comments on commit 7524dfa

Please sign in to comment.