We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abea8a8 commit 1bb66d0Copy full SHA for 1bb66d0
packages/compass-crud/src/components/document-list.jsx
@@ -92,6 +92,10 @@ class DocumentList extends React.Component {
92
* @returns {React.Component} The document list views.
93
*/
94
renderViews() {
95
+ if (this.props.docs?.length === 0) {
96
+ return null;
97
+ }
98
+
99
if (this.props.view === 'List') {
100
return <DocumentListView {...this.props} />;
101
} else if (this.props.view === 'Table') {
0 commit comments