File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
next/src/views/CollectionTreeView
ui/src/views/CollectionTreeView Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ export const buildCollectionTreeView = async (
8989 user,
9090 }
9191
92- // We could support slots in the folder view in the future
93- // const folderViewSlots = renderFolderViewSlots ({
92+ // We could support slots in the tree view in the future
93+ // const treeViewSlots = renderTreeViewSlots ({
9494 // clientProps: {
9595 // collectionSlug,
9696 // hasCreatePermission,
@@ -122,6 +122,7 @@ export const buildCollectionTreeView = async (
122122 ( id ) => `${ collectionSlug } -${ id } ` ,
123123 ) ,
124124 items,
125+ noResults : ! Array . isArray ( items ) || items . length === 0 ,
125126 parentFieldName : '_parentDoc' ,
126127 search,
127128 TreeViewComponent,
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ export function DefaultCollectionTreeView({
4141 < CollectionTreeViewInContext
4242 { ...restOfProps }
4343 collectionSlug = { collectionSlug }
44- noResults = { ! Array . isArray ( items ) || items . length === 0 }
4544 TreeViewComponent = { TreeViewComponent }
4645 />
4746 </ TreeViewProvider >
You can’t perform that action at this time.
0 commit comments