mirror of
https://github.com/flarum/framework.git
synced 2025-04-27 07:04:03 +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.
|
// old data! We'll revert to that and let others handle the error.
|
||||||
response => {
|
response => {
|
||||||
this.pushData(oldData);
|
this.pushData(oldData);
|
||||||
|
m.lazyRedraw();
|
||||||
throw response;
|
throw response;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user