Found in master:ea562de57590c966cd5a75fda8defecd397e6436 Steps to reproduce: * Create a Toaster project with release 'master' * Click on the 'import layer' tab * Enter a layer name that already exists for that project (eg. meta-oe) When you focus out of the name field, the 'loading' notification appears, but the name check never completes and you can merrily proceed to import the layer, generating a duplicate. The browser console shows the following error: Uncaught TypeError: Cannot read property 'length' of undefined importlayer.js:217
By the way, we might think of checking the layer name also on submitting the form. That would have prevented me from importing the layer with an already existing name. Since I was able to import the layer, I am assuming the check is not happening on submit, only on focus out in the layer name field.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2f52ef4b2f22dc266bbf61bebddbcf8bc65e72c8
Verified on master: fc45deac89ef63ca1c44e763c38ced7dfd72cbe1