Skip to content

Commit

Permalink
fix(ReaderFactory): Proper guard for missing camera view points
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jan 30, 2020
1 parent a39c448 commit c779e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/ReaderFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function registerReadersToProxyManager(readers, proxyManager) {
proxyManager.renderAllViews();
}

if (reader.getCameraViewPoints) {
if (reader.getCameraViewPoints && reader.getCameraViewPoints()) {
proxyManager
.getReferenceByName('$store')
.dispatch('setCameraViewPoints', reader.getCameraViewPoints());
Expand Down

0 comments on commit c779e26

Please sign in to comment.