mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 06:39:40 +08:00
Redraw old data after unsuccessful save
This commit is contained in:
parent
8e19312534
commit
ab6e3351b4
@ -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;
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user