Skip to content

Commit

Permalink
Fix for supporting teams apps as web parts on pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jansenbe committed May 21, 2021
1 parent 0bc2d5d commit e39e0b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

### Changed

- Fix for supporting teams apps as web parts on pages [jansenbe - Bert Jansen]
- RenderListDataAsStream populates the IListItem's IContentType [jansenbe - Bert Jansen]
- Fixed NullReferenceException in Values_CollectionChange (issue #447) #445 [DaleyKD - Kyle Daley]
- Ensure the Context.Group model has it's groupid set if that was available [jansenbe - Bert Jansen]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@ internal override void FromHtml(IElement element)

private void SetPropertiesJson(JsonElement parsedJson)
{
if (parsedJson.ValueKind == JsonValueKind.Null)
{
return;
}

propertiesJson = parsedJson.ToString();

if (parsedJson.TryGetProperty("webPartData", out JsonElement webPartData))
Expand Down

0 comments on commit e39e0b7

Please sign in to comment.