Skip to content

Library: Incorrect snackbar text and sidebar menu when removing template/template part #51969

@t-hamano

Description

@t-hamano

Description

I believe the following behavior that occurs when a template part is deleted is not what was intended.

  • Displayed as "undefined" deleted. on snackbar.
  • Nothing appears in the side menu.

Step-by-step reproduction instructions

  • Access the Site Editor > Library.
  • Click "Create pattern" button > Select "Create template part"
  • Create template part.
  • Click the document title bar.
  • Select "Delete template part".
  • A snackbar with the text "undefined" deleted. should appear. Also, nothing will appear in the sidebar menu.

Screenshots, screen recording, code snippet

27cbe95fc24791a2bdf325d7097a05a4.mp4

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions