Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in debug tab when pressing [clear log] button. #1660

Closed
5 tasks
ggeorg opened this issue Mar 3, 2018 · 1 comment
Closed
5 tasks

Exception in debug tab when pressing [clear log] button. #1660

ggeorg opened this issue Mar 3, 2018 · 1 comment

Comments

@ggeorg
Copy link

ggeorg commented Mar 3, 2018

What are the steps to reproduce?

Import the following code:

[{"id":"60304168.5caf6","type":"subflow","name":"Subflow 1","info":"","in":[{"x":141,"y":56,"wires":[{"id":"1ec9b5f6.a6900a"}]}],"out":[]},{"id":"1ec9b5f6.a6900a","type":"debug","z":"60304168.5caf6","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":310,"y":57,"wires":[]},{"id":"db277d71.379c1","type":"inject","z":"c63168ea.33ebe8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":316,"y":132,"wires":[["b7b3c589.19a728","308985b2.d0ca8a"]]},{"id":"b7b3c589.19a728","type":"debug","z":"c63168ea.33ebe8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":647,"y":100,"wires":[]},{"id":"308985b2.d0ca8a","type":"subflow:60304168.5caf6","z":"c63168ea.33ebe8","x":638,"y":164,"wires":[]}]

then go to debug tab and click the [clear logs] button.

What happens?

Exception in debug tab when pressing [clear log] button, only if there is a sub flow that contains a Debug node.

VM858:82 Uncaught TypeError: Cannot read property 'replace' of undefined
    at Object.addItem (eval at <anonymous> (vendor.js:2), <anonymous>:82:70)
    at red.min.js:16
VM858:123 Uncaught TypeError: Cannot read property 'disabled' of undefined
    at Object.addItem (eval at <anonymous> (vendor.js:2), <anonymous>:123:68)
    at red.min.js:16

What do you expect to happen?

Please tell us about your environment:

  • Node-RED version: v0.18.4
  • node.js version: v4.2.3
  • npm version: 4.1.1
  • Platform/OS: Darwin 17.4.0 x64 LE
  • Browser: Chrome

screen shot 2018-03-03 at 11 25 13 pm

@knolleary
Copy link
Member

Thanks for reporting - can reproduce with the flow you've provided and have pushed a fix. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants