retejs / context-menu-plugin

https://retejs.org
MIT License
11 stars 43 forks source link

Fix adding a subitem deleteing the previous items #62

Closed ABCRic closed 1 year ago

ABCRic commented 2 years ago

58 eliminated this a local variable in additem, which makes it so that this line:

items = exist.subitems || (exist.subitems = []);

accidentally clears away the full list of existing items whenever a new item has subpaths.