Skip to content

Commit

Permalink
added a null check to the manage relationship partial view
Browse files Browse the repository at this point in the history
  • Loading branch information
Nityan Khanna committed Apr 2, 2018
1 parent 5390358 commit c60faeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<td>@Constants.NotApplicable</td>
}
<td class="autoFitContents centerContent">
@if (item.ModelType.ToLower() == "material")
@if (item.ModelType?.ToLower() == "material")
{
<a class="btn btn-warning" href="@Url.Action("Edit", "EntityRelationship", new {id = item.Id, sourceId = item.SourceId, type = item.SourceType})">
@Locale.Edit
Expand Down

0 comments on commit c60faeb

Please sign in to comment.