dataflux 1.9.1 → 1.9.2

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.
@@ -155,10 +155,14 @@ var PersistentStore = /*#__PURE__*/function (_Store) {
155
155
  return new Promise(function (resolve, reject) {
156
156
  if (_this.options.autoSave) {
157
157
  if (_this._delayedSaveTimer) {
158
- _this._delayedSavePromise();
158
+ if (_this._delayedSavePromise) {
159
+ _this._delayedSavePromise();
160
+
161
+ _this._delayedSavePromise = null;
162
+ }
159
163
 
160
- _this._delayedSavePromise = null;
161
164
  clearTimeout(_this._delayedSaveTimer);
165
+ _this._delayedSaveTimer = null;
162
166
  }
163
167
 
164
168
  _this._delayedSavePromise = resolve;