Skip to content

Commit

Permalink
Merge pull request #55 from Connected-Places/bug/cannot-login-with-mi…
Browse files Browse the repository at this point in the history
…ssing-service

Fixed issue preventing login when roles and services mismatch
  • Loading branch information
appsol authored Jan 16, 2024
2 parents 8eef59b + 44b26ef commit b40bfe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});

Expand Down

0 comments on commit b40bfe1

Please sign in to comment.