fix js error on fetch copilots
This commit is contained in:
committed by
fiatjaf
parent
4ce0ed63c0
commit
da7f7fb618
@@ -526,7 +526,9 @@
|
||||
this.g.user.wallets[0].inkey
|
||||
)
|
||||
.then(function (response) {
|
||||
self.CopilotLinks = response.data.map(mapCopilot)
|
||||
if(response.data){
|
||||
self.CopilotLinks = response.data.map(mapCopilot)
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
LNbits.utils.notifyApiError(error)
|
||||
|
||||
Reference in New Issue
Block a user