Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggling list and tree mode for a collection in the cp doesn't show anything #2408

Closed
r6203 opened this issue Sep 12, 2020 · 3 comments
Closed

Comments

@r6203
Copy link

r6203 commented Sep 12, 2020

Bug Description

When viewing a collection in the control panel, toggling the view mode between list and tree mode (default), tree mode doesn't show anything.

How to Reproduce

statamic

Environment

Statamic 3.0.7 Solo
Laravel 7.27.0
PHP 7.4.10
No addons installed

Install method (choose one):

  • Fresh install from statamic/statamic
@duncanmcclean
Copy link
Member

duncanmcclean commented Sep 12, 2020

I can confirm this bug report, it's happening for me too. I've added a screenshot below of what the Vue dev tools look like for the PageTree component.

image

After a bit of debugging, I found that it only happens after you switch from the List view to the Entry view. The site data property just becomes null after you switch. I tried to fix it but couldn't figure it out.

@robdekort
Copy link
Contributor

Note: I was only able to recreate this on a fresh install. I can't recreate it somehow on an ongoing project. Neither in the pages or in another collection after making them orderable and expecting a root page.

@robdekort robdekort added the bug label Sep 15, 2020
@sjclark
Copy link
Contributor

sjclark commented Sep 16, 2020

I've had this happen to on collections of various structures, refreshing the page resolves it. To be more specific its the act of toggling from List to Tree that is the bug.

Screen Shot 2020-09-16 at 3 00 46 PM
Screen Shot 2020-09-16 at 3 00 40 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants