File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,9 @@ export default (panel) => {
279
279
async save ( values = { } , env = { } ) {
280
280
// ensure to abort unfinished previous save request
281
281
// to avoid race conditions with older content
282
- this . saveAbortController ?. abort ( ) ;
282
+ this . cancelSaving ( ) ;
283
+
284
+ // create a new abort controller
283
285
this . saveAbortController = new AbortController ( ) ;
284
286
285
287
try {
@@ -325,11 +327,6 @@ export default (panel) => {
325
327
* Updates the form values of the current view
326
328
*/
327
329
async update ( values = { } , env = { } ) {
328
- // cancel any previous save request
329
- // to avoid race conditions with older content
330
- this . cancelSaving ( ) ;
331
-
332
- // send a new save request
333
330
return await this . save ( this . merge ( values , env ) , env ) ;
334
331
} ,
335
332
You can’t perform that action at this time.
0 commit comments