check for catalog.content in search

This commit is contained in:
nklhrstv 2022-05-27 13:11:23 +03:00
parent d24b943017
commit 3d10a520b6

View file

@ -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: {