From 2b322863ca7f545dd21ba419f5f62f92ef1c112e Mon Sep 17 00:00:00 2001 From: blackcoffeexbt <87530449+blackcoffeexbt@users.noreply.github.com> Date: Mon, 12 Jan 2026 11:35:43 +0000 Subject: [PATCH] Fix configuration page errors (#24) --- static/js/admin.js | 8 ++------ static/routes.json | 0 2 files changed, 2 insertions(+), 6 deletions(-) create mode 100644 static/routes.json diff --git a/static/js/admin.js b/static/js/admin.js index 38acf69..e9a405c 100644 --- a/static/js/admin.js +++ b/static/js/admin.js @@ -30,11 +30,7 @@ window.app = Vue.createApp({ fetchConfig() { this.entries = [] LNbits.api - .request( - 'GET', - '/nwcprovider/api/v1/config', - this.g.user.wallets[0].adminkey - ) + .request('GET', '/nwcprovider/api/v1/config') .then(response => { this.config = response.data console.log('Config fetched:', this.config) @@ -53,7 +49,7 @@ window.app = Vue.createApp({ const response = await LNbits.api.request( 'POST', '/nwcprovider/api/v1/config', - this.g.user.wallets[0].adminkey, + null, data ) Quasar.Notify.create({ diff --git a/static/routes.json b/static/routes.json new file mode 100644 index 0000000..e69de29