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
|
@action
|
||||||
delete() {
|
delete() {
|
||||||
|
if (!this.model.id) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this._deleting = true;
|
this._deleting = true;
|
||||||
let deleteAction = () => {
|
let deleteAction = () => {
|
||||||
this._closeWithoutSaving = true;
|
this._closeWithoutSaving = true;
|
||||||
|
|
Loading…
Reference in New Issue