fix js error on fetch copilots

This commit is contained in:
Tiago vasconcelos 2021-08-13 09:42:15 +01:00 committed by fiatjaf
parent 4ce0ed63c0
commit da7f7fb618

View file

@ -526,7 +526,9 @@
this.g.user.wallets[0].inkey this.g.user.wallets[0].inkey
) )
.then(function (response) { .then(function (response) {
self.CopilotLinks = response.data.map(mapCopilot) if(response.data){
self.CopilotLinks = response.data.map(mapCopilot)
}
}) })
.catch(function (error) { .catch(function (error) {
LNbits.utils.notifyApiError(error) LNbits.utils.notifyApiError(error)