diff --git a/packages/sanity/src/structure/panes/documentList/DocumentListPaneContent.tsx b/packages/sanity/src/structure/panes/documentList/DocumentListPaneContent.tsx index 8d9a2a8c7e7..483261307a5 100644 --- a/packages/sanity/src/structure/panes/documentList/DocumentListPaneContent.tsx +++ b/packages/sanity/src/structure/panes/documentList/DocumentListPaneContent.tsx @@ -247,10 +247,6 @@ export function DocumentListPaneContent(props: DocumentListPaneContentProps) { ) - // Explicitly don't include `noDocumentsContent` in the deps array, as it's - // causing a visual bug where the "No documents" message is shown for a split second - // when clearing a search query with no results - // eslint-disable-next-line react-hooks/exhaustive-deps }, [ collapsed, error, @@ -260,11 +256,13 @@ export function DocumentListPaneContent(props: DocumentListPaneContentProps) { items, layout, loadingVariant, - // noDocumentsContent, + noDocumentsContent, onRetry, + paneTitle, renderItem, searchInputElement, shouldRender, + t, ]) return (