Browse Source
Merge pull request #7420 from abpframework/enisn/cmskit/tag-definition-fix
Cms Kit - Handle nullability of TagDefinition DisplayName
pull/7422/head
İlkay İlknur
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
modules/cms-kit/src/Volo.CmsKit.Admin.Application/Volo/CmsKit/Admin/Tags/TagAdminAppService.cs
|
|
@ -78,7 +78,9 @@ namespace Volo.CmsKit.Admin.Tags |
|
|
|
|
|
|
|
|
return definitions |
|
|
return definitions |
|
|
.Select(s => |
|
|
.Select(s => |
|
|
new TagDefinitionDto(s.EntityType, s.DisplayName.Localize(StringLocalizerFactory))) |
|
|
new TagDefinitionDto( |
|
|
|
|
|
s.EntityType, |
|
|
|
|
|
s.DisplayName?.Localize(StringLocalizerFactory) ?? s.EntityType)) |
|
|
.ToList(); |
|
|
.ToList(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|