Skip to content

Commit

Permalink
fix ajaxhandler
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Jun 4, 2024
1 parent 70efd48 commit e5036f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/web/project/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ global.API = {

// Catch coding errors that end up here
if (res instanceof Error) {
console.log(res)
console.error(res)
store.error = res
store.goneABitWest()
return
} else if (res.data) {
store.error = res.data
store.goneABitWest()
return
}

Expand Down

0 comments on commit e5036f3

Please sign in to comment.