Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/mobx-spine.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions dist/mobx-spine.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "mobx-spine",

"version": "0.28.3",
"version": "0.28.4",
"license": "ISC",
"author": "Kees Kluskens <kees@webduck.nl>",
"description": "MobX with support for models, relations and an API.",
Expand Down
4 changes: 2 additions & 2 deletions src/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ export default class Model {
} else {
options.params = { validate: true };
}
return this.save(options);
return this.save(options).catch(() => {});
}

@action
Expand Down Expand Up @@ -911,7 +911,7 @@ export default class Model {
} else {
options.params = { validate: true };
}
return this.saveAll(options);
return this.saveAll(options).catch(() => {});
}

@action
Expand Down