FIX: Don't attempt to delete non-existent bookmark (#12473)
Could happen when using the keyboard shortcut. ("d d")
This commit is contained in:
parent
e4ec0da714
commit
3e586ab25a
|
@ -383,6 +383,10 @@ export default Component.extend({
|
|||
|
||||
@action
|
||||
delete() {
|
||||
if (!this.model.id) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._deleting = true;
|
||||
let deleteAction = () => {
|
||||
this._closeWithoutSaving = true;
|
||||
|
|
Loading…
Reference in New Issue