Skip to content

Runtime error is thrown if first command is triggered outside of the component via the public log method #10

@mitk0936

Description

@mitk0936

https://github.com/autochthe/react-console/blob/0d5d0834b2131cc86f1fa6342fe3d52130c636ad/src/react-console.tsx#L180

In the case when this.state.log is empty array, JS runtime error is thrown.
"Uncaught TypeError: Cannot read property 'message' of undefined"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions