Skip to content

Commit

Permalink
fix: Fix settings update creating new instance
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Nov 30, 2023
1 parent 8aa9208 commit d746da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com.gabe565.nightscout.sdPlugin/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit d746da5

Please sign in to comment.