Skip to content

Issue with Removing Collection Reference in Strapi Menu Plugin #159

Open
@chaudharyshiv

Description

@chaudharyshiv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions