Skip to content

fix: sub-folders not showing up in browse-by-folder view due to wrong empty check in query#14821

Closed
GeorgS wants to merge 1 commit into
payloadcms:mainfrom
GeorgS:fix-folder-type-query
Closed

fix: sub-folders not showing up in browse-by-folder view due to wrong empty check in query#14821
GeorgS wants to merge 1 commit into
payloadcms:mainfrom
GeorgS:fix-folder-type-query

Conversation

@GeorgS
Copy link
Copy Markdown
Contributor

@GeorgS GeorgS commented Dec 5, 2025

What?

Sub folders don't show up when creating them or browsing through the browse-by-folder/select folder view.

Why?

As there is currently no way to navigate through sub folders in either the global browse-by-folder without having to set the "folder" filter first or when selecting a sub-folder from a collection.

How?

As the result returns an empty array if there are no collections assigned, I've changed the query to check for equals: [] instead of exists: false. This might be related to #12072.

Before

bug_folder_view.mov

After

fix_folder_view.mov

@GeorgS GeorgS changed the title fix: sub-folders now showing up in browse-by-folder view due to wrong empty check in query fix: sub-folders not showing up in browse-by-folder view due to wrong empty check in query Dec 5, 2025
@GeorgS
Copy link
Copy Markdown
Contributor Author

GeorgS commented Dec 15, 2025

@JarrodMFlesch can this be merged?

@GeorgS
Copy link
Copy Markdown
Contributor Author

GeorgS commented May 27, 2026

Closing as the underlying issue is fixed by #16759

@GeorgS GeorgS closed this May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants