Fix LNbits 1.4 compatibility: add null guards for g.user.wallets #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/lnbits-1.4-compatibility"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
g.usercan benullduring initial Vue template evaluationg.userinitialization fromwindowMixintobase.html, causing timing issuesg.user?.wallets || []) in template and null guards in JavaScriptProblem
After upgrading to LNbits 1.4, the extension would show "Status: Not configured" even when config existed, due to:
this.g.user.walletsbeforeg.useris initializedlamassuConfigset tonullChanges
templates/satmachineadmin/index.html: Useg.user?.wallets || []for wallet select optionsstatic/js/index.js: Addthis.g.user?.walletsguard before accessing walletsTest plan
Cannot read properties of null (reading 'wallets')🤖 Generated with Claude Code