Skip to content

Commit

Permalink
Fix that you can't add a content part when it's already added as a Na…
Browse files Browse the repository at this point in the history
…med Part (#16495)
  • Loading branch information
lampersky authored Jul 26, 2024
1 parent f26ce31 commit cd8efe9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public async Task<ActionResult> AddPartsTo(string id)
return NotFound();
}

var typePartNames = new HashSet<string>(typeViewModel.TypeDefinition.Parts.Select(p => p.PartDefinition.Name));
var typePartNames = new HashSet<string>(typeViewModel.TypeDefinition.Parts.Select(p => p.IsNamedPart() ? p.Name : p.PartDefinition.Name));

var viewModel = new AddPartsViewModel
{
Expand Down

0 comments on commit cd8efe9

Please sign in to comment.