Skip to content

Commit

Permalink
pnp#2424 Fixed: Set-PnPTeamsChannel: IsFavoriteByDefault 'Nullable ob…
Browse files Browse the repository at this point in the history
…ject must have a value.'
  • Loading branch information
RobLempens committed Oct 5, 2022
1 parent 58c36d1 commit dc5d305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/Teams/SetTeamsChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected override void ExecuteCmdlet()
teamChannel.Description = null;
}

if (teamChannel.MembershipType.ToLower() == "standard" && ParameterSpecified(nameof(IsFavoriteByDefault)) && teamChannel.IsFavoriteByDefault.Value != IsFavoriteByDefault)
if (teamChannel.MembershipType.ToLower() == "standard" && ParameterSpecified(nameof(IsFavoriteByDefault)) && teamChannel.IsFavoriteByDefault != IsFavoriteByDefault)
{
teamChannel.IsFavoriteByDefault = IsFavoriteByDefault;
}
Expand Down

0 comments on commit dc5d305

Please sign in to comment.