Skip to content

DemoPlugin crashes app when no demo is available. #18

@waynemwashuma

Description

@waynemwashuma

System information.

Commit hash: 8c53244

Description.

When there is no demo provided to the DemoPlugin or in the DemoList resource, the app will crash.

Steps to reproduce.

  1. Create an app.
  2. register DemoPlugin with no demos.

Expected behaviour.

The app should run normally.

Actual behaviour.

The app crashes with error:
undefined is not iterable (cannot read property Symbol(Symbol.iterator))

Cause(s).

The initDemo() system is reading an undefined value at the start of the demo list as no demo is inside it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions