Skip to content

Bug report: Problem with spo page section add command #6701

Closed
@mkm17

Description

@mkm17

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

  1. Run the spo page section add command on a page that already contains at least one section.
  2. Run the same command multiple times.
  3. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions