Skip to content
Snippets Groups Projects
Commit 9806f24e authored by Tom Robinson's avatar Tom Robinson
Browse files

Update search collection parameter

parent eb35a22b
No related merge requests found
......@@ -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",
......
......@@ -17,7 +17,7 @@ const CollectionItemsLoader = ({ collectionId, children, ...props }: Props) => (
<EntityListLoader
{...props}
entityType="search"
entityQuery={{ collectionId }}
entityQuery={{ collection: collectionId }}
wrapped
children={({ list }) =>
object &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment