Skip to content

Commit

Permalink
Fix check for visualizers in CesiumVectorData
Browse files Browse the repository at this point in the history
In case there is no cesiumModel created yet.

Issues #2180 and #2189
  • Loading branch information
robyngit committed Nov 1, 2023
2 parents 187351c + 0e7c604 commit f810d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/models/maps/assets/CesiumVectorData.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ define([
clearInterval(interval);
return;
}
const visualizers = model.get("cesiumModel")._visualizers;
const visualizers = model.get("cesiumModel")?._visualizers;
if (visualizers && visualizers.length) {
clearInterval(interval);
callBack();
Expand Down

0 comments on commit f810d7c

Please sign in to comment.