-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search facets filters #896
base: master
Are you sure you want to change the base?
Conversation
bd5c263
to
ae20678
Compare
6382c4d
to
2f45209
Compare
|
||
const ContentType = ({ namespace, t }) => { | ||
let items = useSelector(state => selectors.getTree(state.filtersAside, namespace, FN_CONTENT_TYPE)); | ||
// console.log('ContentType filter items', items) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need console logs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
@@ -83,6 +83,10 @@ const FallbackImage = props => { | |||
} | |||
|
|||
if (knownFallbackImages.includes(imageSource)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fluid is semantic prop so for not semantic components its not need ( I was remove 'circle' so)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this code from this PR.
ada6250
to
091640c
Compare
091640c
to
131d8f5
Compare
@@ -35,6 +35,8 @@ const TagSourceItem = props => { | |||
const getById = isTag ? getTagById : getSourceById; | |||
const item = getById(id); | |||
const childrenIDs = useMemo(() => item.children?.filter(x => baseItems.includes(x)) || [], [baseItems, item]); | |||
const childrenStats = useSelector(state => filtersAside.getMultipleStats(state.filtersAside, namespace, filterName)(childrenIDs)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you run it for all pages even you need it for search only
const baseItems = useSelector(state => selectors.getTree(state.filtersAside, namespace, FN_TOPICS_MULTI)); | ||
const selectedFilters = useSelector(state => filters.getFilterByName(state.filters, namespace, FN_TOPICS_MULTI)); | ||
const selected = useMemo(() => selectedFilters?.values || [], [selectedFilters]); | ||
|
||
console.log('SELECTED', selected); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need it?
@@ -59,12 +70,23 @@ const receiveSingleTypeStats = createAction(RECEIVE_SINGLE_TYPE_STATS); | |||
const fetchStatsFailure = createAction(FETCH_STATS_FAILURE); | |||
const receiveLocationsStats = createAction(RECEIVE_LOCATIONS_STATS); | |||
|
|||
const fetchElasticStats = createAction(FETCH_ELASTIC_STATS, (namespace, params, isPrepare) => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you dont need isPrepare
No description provided.