Skip to content

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

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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