Skip to content

Commit 95dd934

Browse files
committed
fix types
1 parent 3c65994 commit 95dd934

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/next/src/views/CollectionTreeView/buildView.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

packages/ui/src/views/CollectionTreeView/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)