From ae828dfa9f5b35b2e618b57e68df4f508a0604f4 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Wed, 5 May 2021 22:05:57 +0100 Subject: [PATCH] We should be using .bind(this) more when doing this. --- src/pages/KeyValue/KeyValueNew.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {