Skip to content

Commit 460b45c

Browse files
fix: Logic issues in content.js
1 parent b80fccc commit 460b45c

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

panel/src/panel/content.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)