File tree Expand file tree Collapse file tree
packages/instantsearch.js/src/widgets/chat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,14 +122,9 @@ function createCarouselTool<
122122 const items = output ?. hits || [ ] ;
123123 const suggestedFilters = output ?. suggestedFilters || [ ] ;
124124
125- const handleFilterClick = (
126- attribute : string ,
127- value : string ,
128- isRefined : boolean
129- ) => {
130- const action = isRefined ? 'Remove' : 'Apply' ;
125+ const handleFilterClick = ( attribute : string , value : string ) => {
131126 sendMessage ( {
132- text : `${ action } the ${ attribute } filter: ${ value } ` ,
127+ text : `Apply the ${ attribute } filter: ${ value } ` ,
133128 } ) ;
134129 } ;
135130
@@ -199,7 +194,6 @@ function createCarouselTool<
199194 < SuggestedFilters
200195 filters = { suggestedFilters }
201196 onFilterClick = { handleFilterClick }
202- indexUiState = { indexUiState }
203197 />
204198 ) }
205199 </ Fragment >
You can’t perform that action at this time.
0 commit comments