catalog origin fixed in search hook

This commit is contained in:
nklhrstv 2020-03-28 19:03:50 +02:00
parent 999a649f5c
commit d709e57f97

View file

@ -27,7 +27,7 @@ const mapSearchStateWithCtx = (search, ctx) => {
}
:
catalog_resource.content;
const origin = catalog_resource.origin = ctx.profile.addons.reduce((origin, addon) => {
const origin = ctx.profile.addons.reduce((origin, addon) => {
if (addon.transportUrl === catalog_resource.request.base) {
return typeof addon.manifest.name === 'string' && addon.manifest.name.length > 0 ?
addon.manifest.name