diff --git a/dist/mobx-spine.cjs.js b/dist/mobx-spine.cjs.js index ea44d42..8a57de6 100644 --- a/dist/mobx-spine.cjs.js +++ b/dist/mobx-spine.cjs.js @@ -1586,7 +1586,7 @@ var Model = (_class$1 = (_temp$1 = _class2$1 = function () { } else { options.params = { validate: true }; } - return this.save(options); + return this.save(options).catch(function () {}); } }, { key: 'save', @@ -1720,7 +1720,7 @@ var Model = (_class$1 = (_temp$1 = _class2$1 = function () { } else { options.params = { validate: true }; } - return this.saveAll(options); + return this.saveAll(options).catch(function () {}); } }, { key: 'saveAll', diff --git a/dist/mobx-spine.es.js b/dist/mobx-spine.es.js index c543363..b3ff44a 100644 --- a/dist/mobx-spine.es.js +++ b/dist/mobx-spine.es.js @@ -1580,7 +1580,7 @@ var Model = (_class$1 = (_temp$1 = _class2$1 = function () { } else { options.params = { validate: true }; } - return this.save(options); + return this.save(options).catch(function () {}); } }, { key: 'save', @@ -1714,7 +1714,7 @@ var Model = (_class$1 = (_temp$1 = _class2$1 = function () { } else { options.params = { validate: true }; } - return this.saveAll(options); + return this.saveAll(options).catch(function () {}); } }, { key: 'saveAll', diff --git a/package.json b/package.json index 32ab6d4..847a76e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "mobx-spine", - - "version": "0.28.3", + "version": "0.28.4", "license": "ISC", "author": "Kees Kluskens ", "description": "MobX with support for models, relations and an API.", diff --git a/src/Model.js b/src/Model.js index 292077b..dfd2374 100644 --- a/src/Model.js +++ b/src/Model.js @@ -798,7 +798,7 @@ export default class Model { } else { options.params = { validate: true }; } - return this.save(options); + return this.save(options).catch(() => {}); } @action @@ -911,7 +911,7 @@ export default class Model { } else { options.params = { validate: true }; } - return this.saveAll(options); + return this.saveAll(options).catch(() => {}); } @action