incyclist-services 1.7.101 → 1.7.102

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.
@@ -407,12 +407,11 @@ let WorkoutListService = (() => {
407
407
  this.getAppState().setState('scheduledToday', null);
408
408
  return;
409
409
  }
410
- if (!this.selectedCard) {
411
- return;
410
+ if (this.selectedCard) {
411
+ const card = this.selectedCard;
412
+ delete this.selectedCard;
413
+ card.unselect();
412
414
  }
413
- const card = this.selectedCard;
414
- delete this.selectedCard;
415
- card.unselect();
416
415
  this.selectedWorkout = null;
417
416
  this.getAppState().setState('scheduledToday', null);
418
417
  }
@@ -312,6 +312,7 @@ let WorkoutListPageService = (() => {
312
312
  return;
313
313
  const settings = this.getWorkoutList().getStartSettings();
314
314
  card.select({ ...settings, noRoute: false });
315
+ this.detailWorkoutId = null;
315
316
  this.emitPageUpdate();
316
317
  }
317
318
  catch (err) {
@@ -404,12 +404,11 @@ let WorkoutListService = (() => {
404
404
  this.getAppState().setState('scheduledToday', null);
405
405
  return;
406
406
  }
407
- if (!this.selectedCard) {
408
- return;
407
+ if (this.selectedCard) {
408
+ const card = this.selectedCard;
409
+ delete this.selectedCard;
410
+ card.unselect();
409
411
  }
410
- const card = this.selectedCard;
411
- delete this.selectedCard;
412
- card.unselect();
413
412
  this.selectedWorkout = null;
414
413
  this.getAppState().setState('scheduledToday', null);
415
414
  }
@@ -309,6 +309,7 @@ let WorkoutListPageService = (() => {
309
309
  return;
310
310
  const settings = this.getWorkoutList().getStartSettings();
311
311
  card.select({ ...settings, noRoute: false });
312
+ this.detailWorkoutId = null;
312
313
  this.emitPageUpdate();
313
314
  }
314
315
  catch (err) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "incyclist-services",
3
- "version": "1.7.101",
3
+ "version": "1.7.102",
4
4
  "peerDependencies": {
5
5
  "gd-eventlog": "^0.1.27"
6
6
  },
7
7
  "dependencies": {
8
8
  "@garmin/fitsdk": "^21.200.0",
9
9
  "axios": "^1.15.2",
10
- "incyclist-devices": "^3.0.32",
10
+ "incyclist-devices": "^3.0.33",
11
11
  "promise.any": "^2.0.6",
12
12
  "semver": "^7.7.4",
13
13
  "tcx-builder": "^1.1.1",