Skip to content
Snippets Groups Projects
Commit 09f250ae authored by Chris Beer's avatar Chris Beer
Browse files

Guard against manifestations that aren't IIIF resources

parent 35256aed
Branches
Tags
No related merge requests found
...@@ -60,6 +60,10 @@ export function getManifestCanvases(manifest) { ...@@ -60,6 +60,10 @@ export function getManifestCanvases(manifest) {
return []; return [];
} }
if (!manifest.manifestation.getSequences || !manifest.manifestation.getSequences()[0]) {
return [];
}
return manifest.manifestation.getSequences()[0].getCanvases(); return manifest.manifestation.getSequences()[0].getCanvases();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment