diff --git a/src/classes/Auth.js b/src/classes/Auth.js index e51088f..6a2a680 100644 --- a/src/classes/Auth.js +++ b/src/classes/Auth.js @@ -108,7 +108,7 @@ class Auth { const service = services.data.data.find( service => service.id === role.service_id ); - role.organisation_id = service.organisation_id; + role.organisation_id = service ? service.organisation_id : null; } });