FIX: Don't attempt to delete non-existent bookmark (#12473)

Could happen when using the keyboard shortcut. ("d d")
This commit is contained in:
Jarek Radosz 2021-03-22 18:25:34 +01:00 committed by GitHub
parent e4ec0da714
commit 3e586ab25a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -383,6 +383,10 @@ export default Component.extend({
@action
delete() {
if (!this.model.id) {
return;
}
this._deleting = true;
let deleteAction = () => {
this._closeWithoutSaving = true;