Steps to reproduce:
- create host with one interface
- add discovery rule and host prototype
- discover one or more hosts
- open configuration form of the discovered host
- press "Full clone"
No JS errors.