Skip to content

Commit

Permalink
fix(guided_tour): allow missing layers
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoMarnat committed Aug 28, 2024
1 parent 4f1ffe1 commit 3502976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/widget_guided_tour/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class GuidedTour {
const step = this.getCurrentStep();
if (step.position && step.rotation)
this.travelToPosition(step.position, step.rotation);
this.filterLayers(step.layers);
if (step.layers && step.layers.length > 0) this.filterLayers(step.layers);
this.addMedia(step.media);
}

Expand Down

0 comments on commit 3502976

Please sign in to comment.