Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
[PRTL-3153] add codeguard to restore slide viewer (#2875)
Browse files Browse the repository at this point in the history
  • Loading branch information
justincorrigible authored Jun 18, 2020
1 parent 0f3164b commit 4b605e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/packages/@ncigdc/components/ZoomableImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ const enhance = compose(
viewer.addControl(document.querySelector('#details-button'), {
anchor: OpenSeadragon.ControlAnchor.TOP_LEFT,
});
// an empty label that 508 scan doesnt like
document.querySelector('.openseadragon-container label').remove();

setViewer(viewer);

// an empty label that 508 scan doesnt like
document.querySelector('.openseadragon-container label') &&
document.querySelector('.openseadragon-container label').remove();
}
});
},
Expand Down

0 comments on commit 4b605e8

Please sign in to comment.