mirror of
https://github.com/discourse/discourse.git
synced 2025-06-14 19:29:21 +08:00
FIX: Don't attempt to delete non-existent bookmark (#12473)
Could happen when using the keyboard shortcut. ("d d")
This commit is contained in:
@ -383,6 +383,10 @@ export default Component.extend({
|
|||||||
|
|
||||||
@action
|
@action
|
||||||
delete() {
|
delete() {
|
||||||
|
if (!this.model.id) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this._deleting = true;
|
this._deleting = true;
|
||||||
let deleteAction = () => {
|
let deleteAction = () => {
|
||||||
this._closeWithoutSaving = true;
|
this._closeWithoutSaving = true;
|
||||||
|
Reference in New Issue
Block a user