@energycap/components 0.39.11-ECAP-24439-Bill-Capture-Tour.20240321-1525 → 0.39.11-ECAP-24439-Bill-Capture-Tour.20240325-1440

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9332,13 +9332,17 @@ class TourComponent {
9332
9332
  }
9333
9333
  }
9334
9334
  else if (event.tourAction === 'append') {
9335
+ let visibleTours = event.tours;
9336
+ // If this was triggered via auto start then we need to remove any tours that have been completed
9337
+ if (event.isAutoStart) {
9338
+ visibleTours = this.removeCompletedTours(visibleTours);
9339
+ }
9340
+ // If there is already a current tour, then we need to append the new tours to the current tour
9335
9341
  if (this.currentTour) {
9336
- if (event.isAutoStart) {
9337
- this.tours = this.removeCompletedTours(event.tours);
9338
- }
9339
- this.tours = this.tours.concat(event.tours);
9342
+ this.tours = this.tours.concat(visibleTours);
9340
9343
  }
9341
9344
  else {
9345
+ // There is not a current tour, so treat this as a start event
9342
9346
  await this.setupTourComponent(event);
9343
9347
  }
9344
9348
  }