mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
useSearch adapted to the new core api
This commit is contained in:
parent
3d840507a9
commit
292f4d59c6
1 changed files with 2 additions and 2 deletions
|
|
@ -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')]
|
||||
|
|
|
|||
Loading…
Reference in a new issue