Skip to content

Commit a7577b0

Browse files
committed
Merge branch 'collapsible_section_webpart_fix' of https://github.com/mmi-wp/pnpcore into pr1167
2 parents f793cca + a94e0a8 commit a7577b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sdk/PnP.Core/Model/SharePoint/Pages/Internal/PageWebPart.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public override string ToHtml(float controlIndex)
287287
controlData.ZoneGroupMetadata = new SectionZoneGroupMetadata()
288288
{
289289
// Set section type to 1 if it was not set (when new sections are added via code)
290-
Type = (Section as CanvasSection).SectionType,
290+
Type = (Section as CanvasSection).SectionType == 0 ? 1 : (Section as CanvasSection).SectionType,
291291
DisplayName = Section.DisplayName,
292292
IsExpanded = Section.IsExpanded,
293293
ShowDividerLine = Section.ShowDividerLine,

0 commit comments

Comments
 (0)