Closed
Description
Priority
(Medium) I'm annoyed but I'll live
Description
During testing of different functionalities, I noticed that something is off with the spo page section add
command.
I suspect that after changes to the SPO page functionalities, there is now a problem when adding multiple sections to a page. The issue seems to be in the calculation of zoneIndex, which starts at this line and continues up to line 274.
Steps to reproduce
- Run the
spo page section add
command on a page that already contains at least one section. - Run the same command multiple times.
- The sections are added to the page structure, but only the first one is visible, the rest are not rendered due to an incorrect zoneIndex.
Expected results
Many sections are successfully added.
Actual results
Not all added sections are visible.
Diagnostics
No response
CLI for Microsoft 365 version
v10.6.0
nodejs version
v22.14.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
Let me know if you observe the same issue. If so, and you don’t mind, please assign the issue to me.