1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 18:21:33 +02:00

Redraw old data after unsuccessful save

This commit is contained in:
Toby Zerner
2015-09-22 17:23:28 +09:30
parent 1efddf416e
commit c61d2dfc27

View File

@@ -171,6 +171,7 @@ export default class Model {
// old data! We'll revert to that and let others handle the error.
response => {
this.pushData(oldData);
m.lazyRedraw();
throw response;
}
);