diff --git a/frontend/src/metabase/components/CollectionLanding.jsx b/frontend/src/metabase/components/CollectionLanding.jsx index 45df29d0b935b3c426739c4e5786c7c54315cad9..fda2907c271ca3b9f79460293230d06d22fe89d2 100644 --- a/frontend/src/metabase/components/CollectionLanding.jsx +++ b/frontend/src/metabase/components/CollectionLanding.jsx @@ -80,10 +80,7 @@ const CollectionList = () => { }; @connect((state, { collectionId }) => ({ - entityQuery: - collectionId === "root" - ? {} // FIXME /api/search doesn't yet support root collection - : { collection_id: collectionId }, + entityQuery: { collection: collectionId }, })) @entityListLoader({ entityType: "search", diff --git a/frontend/src/metabase/containers/CollectionItemsLoader.jsx b/frontend/src/metabase/containers/CollectionItemsLoader.jsx index e22ae4976abdcd7dab1bd8a50f0e5dabf786b30e..97dd935e44a50384de63a3e445a11ab9f267d4a8 100644 --- a/frontend/src/metabase/containers/CollectionItemsLoader.jsx +++ b/frontend/src/metabase/containers/CollectionItemsLoader.jsx @@ -17,7 +17,7 @@ const CollectionItemsLoader = ({ collectionId, children, ...props }: Props) => ( <EntityListLoader {...props} entityType="search" - entityQuery={{ collectionId }} + entityQuery={{ collection: collectionId }} wrapped children={({ list }) => object &&