File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ function SearchFiltersBar({queryJSON, headerButtonsOptions}: SearchFiltersBarPro
151151 const openAdvancedFilters = useCallback ( ( ) => {
152152 updateAdvancedFilters ( filterFormValues ) ;
153153 Navigation . navigate ( ROUTES . SEARCH_ADVANCED_FILTERS ) ;
154+
154155 // Disable exhaustive deps because we use filterFormValuesKey as the dependency, which is a stable key based on filterFormValues
155156 // eslint-disable-next-line react-compiler/react-compiler
156157 // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -192,7 +193,7 @@ function SearchFiltersBar({queryJSON, headerButtonsOptions}: SearchFiltersBarPro
192193 const statusComponent = useCallback (
193194 ( { closeOverlay} : PopoverComponentProps ) => {
194195 const items = getStatusOptions ( type , groupBy ) ;
195- const selected = Array . isArray ( status ) ? items . filter ( ( option ) => status . includes ( option . value ) ) : items . find ( ( option ) => option . value === status ) ?? [ ] ;
196+ const selected = Array . isArray ( status ) ? items . filter ( ( option ) => status . includes ( option . value ) ) : ( items . find ( ( option ) => option . value === status ) ?? [ ] ) ;
196197 const value = [ selected ] . flat ( ) ;
197198
198199 const onChange = ( selectedItems : Array < MultiSelectItem < SingularSearchStatus > > ) => {
You can’t perform that action at this time.
0 commit comments