useSearch adapted to the new core api

This commit is contained in:
nklhrstv 2020-02-12 10:36:03 +02:00
parent 3d840507a9
commit 292f4d59c6

View file

@ -13,7 +13,7 @@ const mapSearchStateWithCtx = (search, ctx) => {
'';
const selected = search.selected;
const catalog_resources = search.catalog_resources.map((catalog_resource) => {
catalog_resource.addon_name = ctx.content.addons.reduce((addon_name, addon) => {
catalog_resource.addon_name = ctx.profile.addons.reduce((addon_name, addon) => {
if (addon.transportUrl === catalog_resource.request.base) {
return addon.manifest.name;
}
@ -41,7 +41,7 @@ const useSearch = (queryParams) => {
return {
action: 'Load',
args: {
load: 'CatalogsWithExtra',
model: 'CatalogsWithExtra',
args: {
extra: [
['search', queryParams.get('search')]