From 44b26ef267616b848eeddf76ec97ccd14edac361 Mon Sep 17 00:00:00 2001 From: Stuart Laverick Date: Tue, 16 Jan 2024 14:40:21 +0000 Subject: [PATCH] Fixed issue preventing login when roles and services mismatch --- src/classes/Auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } });