ng-miam 4.6.14 → 4.6.15

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.
@@ -1162,8 +1162,8 @@
1162
1162
  var _this = this;
1163
1163
  if (!this.pos$.value || this.pos$.value.id !== posId) {
1164
1164
  this.get(posId, { include: ['supplier'] }).pipe(operators.skipWhile(function (pos) { return pos.is_loading; }), operators.tap(function (pos) {
1165
- _this.pos$.next(pos);
1166
1165
  _this.posHasBeenFetched = true;
1166
+ _this.pos$.next(pos);
1167
1167
  })).subscribe();
1168
1168
  }
1169
1169
  return this.pos$;
@@ -1181,9 +1181,8 @@
1181
1181
  include: ['supplier']
1182
1182
  }).pipe(operators.skipWhile(function (pos) { return pos.is_loading; }), operators.tap(function (pos) {
1183
1183
  // TODO when data empty => hide webc
1184
- if (pos.data.length > 0) {
1185
- _this.pos$.next(pos.data[0]);
1186
- }
1184
+ _this.posHasBeenFetched = true;
1185
+ _this.pos$.next(pos.data[0]);
1187
1186
  })).subscribe();
1188
1187
  return this.pos$;
1189
1188
  };