Skip to content

TypeError when no subsites are configured #187

@MuzzammilaSajeena

Description

@MuzzammilaSajeena

Summary:
When running the "Populate Workspace" command with a config that does not declare any subsites, I receive the following error:

TypeError: Cannot read properties of undefined (reading 'length')

Steps to Reproduce:

  1. Use a valid spgo.json that does not include a subSites property (no subsites).
  2. Run the "Populate local Workspace" command.

Expected Behavior:
Workspace populates successfully, even if no subsites are configured.

Actual Behavior:
The command fails with the above TypeError.

@chrishasz Please help to resolve this issue.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions