Skip to content
Snippets Groups Projects
Unverified Commit fbd18fea authored by Jack Reed's avatar Jack Reed Committed by GitHub
Browse files

Merge pull request #3165 from ProjectMirador/osd-state

OSD mutates its tile sources
parents 666259c4 f5eef42e
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,8 @@ export class OpenSeadragonViewer extends Component {
reject();
}
const tileSource = infoResponse.json;
// OSD mutates this object, so we give it a shallow copy
const tileSource = { ...infoResponse.json };
const contentResource = canvasWorld.contentResource(infoResponse.id);
if (!contentResource) return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment