Steps to reproduce:
- Open a page with VE
- Insert a Basic Reference
3.Reopen the reference dialog again.
4.Now delete the text from the textfield , this will enable "Use existing reference" button in the dialog
5.Now go ahead and click on that button
6.Select this same reference, which is showing up in the list
Observed Result:
The following error appears in the console:
Uncaught TypeError: Cannot read property 'length' of undefined
Expected Result:
Probably we should not show the same reference in the Use existing reference list while accessing it from that reference dialog ?