mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
check for catalog.content in search
This commit is contained in:
parent
d24b943017
commit
3d10a520b6
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ const useSearch = (queryParams) => {
|
|||
const state = core.transport.getState('search');
|
||||
if (state.selected !== null) {
|
||||
const [, query] = state.selected.extra.find(([name]) => name === 'search');
|
||||
const responses = state.catalogs.filter((catalog) => catalog.content.type === 'Ready');
|
||||
const responses = state.catalogs.filter((catalog) => catalog.content?.type === 'Ready');
|
||||
core.transport.analytics({
|
||||
event: 'Search',
|
||||
args: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue