Skip to content

Add additional JS checks and show error

  • Add empty object check (obj) in the promise chain
  • Add check on undefined profiles property (obj.profiles)
  • Check on an profiles length
  • Check if profiles is an array
  • Add catch to the fetch() promise
  • Show error message to end-user using showStatus()
Edited by Melroy van den Berg

Merge request reports