diff --git a/src/pages/KeyValue/KeyValueNew.js b/src/pages/KeyValue/KeyValueNew.js index e1f4a59..f0ebd6c 100644 --- a/src/pages/KeyValue/KeyValueNew.js +++ b/src/pages/KeyValue/KeyValueNew.js @@ -50,8 +50,8 @@ export class KeyValueNewPage extends Page { this.addKVNewForm.addEventListener("submit", function (e) { e.preventDefault(); - pageState.currentPage.newKVSecretHandleForm(); - }); + this.newKVSecretHandleForm(); + }.bind(this)); } newKVSecretHandleForm() {