Skip to content

Commit a94e0a8

Browse files
committed
fixed issue where section collapsibility is not set correctly when provisioning a clientsidepage with a collapsible section containing a webpart.
1 parent 0e018c4 commit a94e0a8

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)