loads more work on API formatting

This commit is contained in:
Black Coffee
2022-10-06 17:06:22 +01:00
parent 662e637758
commit d3e6bb3444
2 changed files with 20 additions and 18 deletions
@@ -667,8 +667,8 @@
data
)
.then(function (response) {
self.gertys.push(mapGerty(response.data))
self.formDialog.show = false
self.gertys.push(mapGerty(response.data))
})
.catch(function (error) {
LNbits.utils.notifyApiError(error)
@@ -689,8 +689,8 @@
self.gertys = _.reject(self.gertys, function (obj) {
return obj.id == data.id
})
self.gertys.push(mapGerty(response.data))
self.formDialog.show = false
self.gertys.push(mapGerty(response.data))
})
.catch(function (error) {
LNbits.utils.notifyApiError(error)