Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'post',
BoolMust([TermQuery('discussion_id', discussionId), TermQuery('parent_id', 0)])
)}
/>
filter={BoolMust([
HasChildQuery(
'post',
BoolMust([TermQuery('discussion_id', discussionId), RangeQuery('parent_id', { gt: 0 })])
),
BoolMustNot(
HasChildQuery('post', BoolMust([TermQuery('discussion_id', discussionId), TermQuery('parent_id', 0)]))
)
])}
/>
) : null}
containerComponent={NoPanel}
id="creative-participants"
title={I18n.t('search.Creative participants')}
label={I18n.t('search.Creative participants')}
filter={HasChildQuery(
'post',
BoolMust([TermQuery('discussion_id', discussionId), TermQuery('parent_id', 0)])
)}
/>