Skip to content

Commit

Permalink
🐛 fix errors caused by formatting code
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnkwlp committed Sep 23, 2023
1 parent 731c0d1 commit 1590d3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ public class WorkflowTeamRoleScopeDto : EntityDto
{
public string RoleName { get; set; }

public List<WorkflowTeamRoleScopeValueDto> Values { get; }
public List<WorkflowTeamRoleScopeValueDto> Values { get; set; } = new List<WorkflowTeamRoleScopeValueDto>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ public async Task<ListResultDto<WorkflowTeamRoleScopeDto>> GetRoleScopesAsync(Gu
{
var entity = await _workflowTeamRepository.GetAsync(id);

return new ListResultDto<WorkflowTeamRoleScopeDto>(ObjectMapper.Map<List<WorkflowTeamRoleScope>, List<WorkflowTeamRoleScopeDto>>(entity.RoleScopes));
var roleScopes = entity.RoleScopes ?? new List<WorkflowTeamRoleScope>();

return new ListResultDto<WorkflowTeamRoleScopeDto>(ObjectMapper.Map<List<WorkflowTeamRoleScope>, List<WorkflowTeamRoleScopeDto>>(roleScopes));
}

[Authorize(Policy = ElsaModulePermissions.WorkflowTeams.Update)]
Expand Down

0 comments on commit 1590d3c

Please sign in to comment.