File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -341,26 +341,12 @@ export default (panel) => {
341341 throw new Error ( "The content is not locked" ) ;
342342 }
343343
344- // Cancel any ongoing save requests.
345- // The discard request will throw those
346- // changes away anyway.
347- this . cancelSaving ( ) ;
348-
349344 // Start processing the request
350345 this . isProcessing = true ;
351346
352347 try {
353348 await this . request ( "unlock" , { } , env ) ;
354-
355349 this . emit ( "unlock" , { } , env ) ;
356- } catch ( error ) {
357- // handle locked states
358- if ( error . key ?. startsWith ( "error.content.lock" ) ) {
359- return this . lockDialog ( error . details ) ;
360- }
361-
362- // let our regular error handler take over
363- throw error ;
364350 } finally {
365351 this . isProcessing = false ;
366352 }
You can’t perform that action at this time.
0 commit comments