mattmilburn / strapi-plugin-menus

A plugin for Strapi CMS to customize the structure of menus and menu items.
MIT License
110 stars 27 forks source link

Issue with Removing Collection Reference in Strapi Menu Plugin #159

Open chaudharyshiv opened 4 months ago

chaudharyshiv commented 4 months ago

When utilizing the Strapi Menu Plugin, there's an issue observed regarding removing a collection reference from a menu item. The scenario is as follows:

Attach a collection reference in a menu item. Save the menu item. Remove the collection reference and add another reference. Save the menu item again without refreshing the window. Remove the Collection reference and save. Refresh the window.

Expected Behavior: Upon saving the menu item without refreshing the window, the removed references should be accurately reflected, and the disconnect array length should be appropriately sent in the middleware while save is called.

Actual Behavior: However, it's observed that after saving without refreshing the window, the disconnect array length of the reference comes as 0 in the middleware. While the menu item gets saved, on subsequent UI refresh, the removed reference is still visible. This indicates a discrepancy between the UI and the backend, where the UI might not be sending the disconnect array correctly to the backend.

This issue impacts the usability and reliability of the Strapi Menu Plugin, particularly in scenarios requiring dynamic modification of menu items. A thorough investigation into the communication between the UI and the backend is required to address this discrepancy and ensure seamless functionality.

Additional Information:

Strapi version: 4.12.5 Plugin version: ^1.4.3

chaudharyshiv commented 3 months ago

Any update on this?