craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.2k stars 617 forks source link

[5.x]: Collapsing the bottom entry in a structure appends "Nothing yet" to the index view #15241

Closed mmikkel closed 6 days ago

mmikkel commented 1 week ago

What happened?

Description

In a structure, if the bottom, top level parent is collapsed and there are no other top level parents that are expanded, Craft injects the "Nothing yet" message:

https://github.com/craftcms/cms/assets/298510/5727fae3-b1b9-43de-935b-815ca59e1b9b

Steps to reproduce

  1. Create a structure, and add some entries at different levels. Make sure the bottom, top level entry has children
  2. Collapse all the top level entries, going from top to bottom.
  3. When collapsing the bottom, top level entry, observe the "Nothing yet" message appearing.

Expected behavior

Actual behavior

Craft CMS version

5.2.3

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

None

i-just commented 1 week ago

Hi, thanks for reporting! I raised a PR for this.

brandonkelly commented 5 days ago

Craft 5.2.4 is out with a fix for this. Thanks again!