fix delete current webhook

This commit is contained in:
hippoz 2020-10-14 16:00:00 +03:00
parent d50e1943eb
commit 7a314908d1

View file

@ -96,8 +96,8 @@
deleteCurrentWebhook: function() {
const yn = confirm(`Delete webhook ${this.selectedWebhookObject.name}?`);
if (yn) {
this.selectedWebhook = -1;
this.deleteWebhookByIndex(this.selectedWebhook);
this.selectedWebhook = -1;
this.saveToLocalstorage();
alert(`Webhook successfully deleted`);
}