dataflux 1.18.0 → 1.18.1

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.
@@ -189,13 +189,18 @@ var ObserverStore = /*#__PURE__*/function (_PersistentStore) {
189
189
  var objects = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
190
190
  return (_classPrivateFieldGet(_unsubPromises, _this).length ? Promise.all(_classPrivateFieldGet(_unsubPromises, _this)) : Promise.resolve()).then(function () {
191
191
  if (objects.length) {
192
- var type = objects[0].getModel().getType();
193
- var uniqueSubs = _classPrivateFieldGet(_getUniqueSubs, _this).call(_this, objects, type);
194
- (0, _batchPromises["default"])(10, uniqueSubs, function (_ref3) {
195
- var callback = _ref3.callback,
196
- filterFunction = _ref3.filterFunction;
197
- return _this.find(type, filterFunction).then(callback);
198
- });
192
+ var _objects$;
193
+ var type = objects === null || objects === void 0 || (_objects$ = objects[0]) === null || _objects$ === void 0 || (_objects$ = _objects$.getModel()) === null || _objects$ === void 0 ? void 0 : _objects$.getType();
194
+ if (type) {
195
+ var uniqueSubs = _classPrivateFieldGet(_getUniqueSubs, _this).call(_this, objects, type);
196
+ (0, _batchPromises["default"])(10, uniqueSubs, function (_ref3) {
197
+ var callback = _ref3.callback,
198
+ filterFunction = _ref3.filterFunction;
199
+ return _this.find(type, filterFunction).then(callback);
200
+ });
201
+ } else {
202
+ console.log("Malformed update list", objects);
203
+ }
199
204
  }
200
205
  return objects;
201
206
  });