File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ window.searchCategories = () => {
478478 $or : [ {
479479 "$json.title" : {
480480 $regex : searchElem . value . toLowerCase ( ) ,
481- $options : "- i" ,
481+ $options : "i" ,
482482 } ,
483483 } ,
484484 ] ,
Original file line number Diff line number Diff line change @@ -964,7 +964,7 @@ const renderSelectedCategoriesList = (locationCategories) => {
964964 for ( const categoryId of locationCategories ?. main ) {
965965 const category = state . categoriesLookup [ categoryId ] ;
966966 if ( ! category ) return console . warn ( `location's category with ID: ${ categoryId } is not found` ) ;
967-
967+
968968 const subcategories = category . subcategories . filter ( elem => locationCategories ?. subcategories . includes ( elem . id ) ) ;
969969
970970 const categoryListItem = document . createElement ( 'div' ) ;
@@ -1426,7 +1426,7 @@ window.searchLocations = (e) => {
14261426 clearTimeout ( timeoutId ) ;
14271427 timeoutId = setTimeout ( ( ) => {
14281428 if ( searchValue ) {
1429- state . filter [ "_buildfire.index.text" ] = { $regex : searchValue , $options : "- i" } ;
1429+ state . filter [ "_buildfire.index.text" ] = { $regex : searchValue , $options : "i" } ;
14301430 } else {
14311431 delete state . filter [ "_buildfire.index.text" ] ;
14321432 }
Original file line number Diff line number Diff line change @@ -601,7 +601,7 @@ const openSelectLocationsDialog = () => {
601601 locationsListContainer . appendChild ( createEmptyHolder ( 'Loading...' ) ) ;
602602 resetSelectLocations ( ) ;
603603 if ( searchValue ) {
604- state . selectLocations . filter [ "_buildfire.index.text" ] = { $regex : searchValue , $options : "- i" } ;
604+ state . selectLocations . filter [ "_buildfire.index.text" ] = { $regex : searchValue , $options : "i" } ;
605605 }
606606 loadSelectLocations ( ) ;
607607 } , 300 ) ;
@@ -765,7 +765,7 @@ const initLocationEditing = () => {
765765 resetEditingLocations ( ) ;
766766 showLocationsEditingLoadingState ( ) ;
767767 if ( searchValue ) {
768- state . editingLocations . filter [ "_buildfire.index.text" ] = { $regex : searchValue , $options : "- i" } ;
768+ state . editingLocations . filter [ "_buildfire.index.text" ] = { $regex : searchValue , $options : "i" } ;
769769 }
770770 loadEditingLocations ( ) ;
771771 } , 300 ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export const buildSearchCriteria = () => {
1010 const { subcategoryIds, categoryIds } = getCategoriesAndSubCategoriesByName ( state . searchCriteria . searchValue , state . categories ) ;
1111 const array1Index = [ ...categoryIds . map ( ( id ) => `c_${ id } ` ) , ...subcategoryIds . map ( ( id ) => `s_${ id } ` ) ] ;
1212 query . $or = [
13- { "_buildfire.index.text" : { $regex : state . searchCriteria . searchValue . toLowerCase ( ) , $options : "- i" } } ,
13+ { "_buildfire.index.text" : { $regex : state . searchCriteria . searchValue . toLowerCase ( ) , $options : "i" } } ,
1414 { "_buildfire.index.array1.string1" : { $in : array1Index } }
1515 ] ;
1616 }
You can’t perform that action at this time.
0 commit comments