@the-liberators/ngx-scrumteamsurvey-tools 2.3.38 → 2.3.39

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.
@@ -171,18 +171,20 @@ let ViewModelStateBase = class ViewModelStateBase {
171
171
  this.data = new BehaviorSubject(new this.startInstance());
172
172
  }
173
173
  load() {
174
- if (this.result && this.result.loaded) {
174
+ if (this.result) {
175
175
  return;
176
176
  }
177
177
  this.result = new this.startInstance();
178
178
  this.updating.next(true);
179
- this.strategy.subscribe().pipe(take(1)).subscribe(aggregate => {
180
- if (aggregate) {
181
- aggregate.loaded = true;
182
- this.map(aggregate);
179
+ this.strategy.subscribe().pipe(take(2)).subscribe(success => {
180
+ if (success) {
181
+ success.loaded = true;
182
+ this.map(success);
183
183
  this.data.next(this.result);
184
184
  this.updating.next(false);
185
185
  }
186
+ }, error => {
187
+ this.result = null;
186
188
  });
187
189
  }
188
190
  forcedReload() {