From d746da5d2da33d2e3e311bd620b4a995db72ba02 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Thu, 30 Nov 2023 12:26:35 -0600 Subject: [PATCH] fix: Fix settings update creating new instance --- src/com.gabe565.nightscout.sdPlugin/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com.gabe565.nightscout.sdPlugin/js/app.js b/src/com.gabe565.nightscout.sdPlugin/js/app.js index 6b9aa8e..1caed1b 100644 --- a/src/com.gabe565.nightscout.sdPlugin/js/app.js +++ b/src/com.gabe565.nightscout.sdPlugin/js/app.js @@ -5,7 +5,7 @@ const nightscoutAction = new Action("com.gabe565.nightscout.action"); nightscoutAction.onDidReceiveSettings( - ({ payload: { settings } }) => (new Nightscout(data).settings = settings), + (data) => (new Nightscout(data).settings = data.payload.settings), ); nightscoutAction.onKeyDown((data) => new Nightscout(data).beginTick());