Skip to content

Conversation

@himaniraghav3
Copy link
Collaborator

No description provided.

}).then((res) => {
logger.debug(`Roles by ${roleName}: ${JSON.stringify(res.data.result.content)}`);
return _.get(res, 'data.result.content', [])
const roles = res.data;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using _.get to safely access res.data to avoid potential errors if res.data is undefined. For example: const roles = _.get(res, 'data', []);

@himaniraghav3 himaniraghav3 merged commit 4a052d9 into develop Oct 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants