Skip to content

Commit

Permalink
Merge pull request #15 from tinloof/tin-190-fix-sanity-studio-pages-p…
Browse files Browse the repository at this point in the history
…lugin-issue

Fix hidden folder ListItem
  • Loading branch information
thomasKn authored Apr 2, 2024
2 parents 7e279f0 + 5beeb0a commit b68f1a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tiny-ghosts-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tinloof/sanity-studio": patch
---

Fix folder ListItem rendering
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const ListItem = ({ item, active, setActive, idx }: ListItemProps) => {

const schemaType = schema.get(item._type);

if (!schemaType) {
if (item._type !== "folder" && !schemaType) {
return null;
}

Expand Down

0 comments on commit b68f1a9

Please sign in to comment.