@@ -455,6 +455,7 @@ const FilterComponent = ({
455455 }
456456
457457 setFilter ( [ ...filters ] ) ;
458+ localStorage . setItem ( 'logical_operator' , JSON . stringify ( 'and' ) ) ;
458459 }
459460
460461 function handleChangeForStatus ( filter : any , value : string ) {
@@ -467,6 +468,7 @@ const FilterComponent = ({
467468 filter . filterValue = value ;
468469
469470 setFilter ( [ ...filters ] ) ;
471+ localStorage . setItem ( 'logical_operator' , JSON . stringify ( 'and' ) ) ;
470472 }
471473 function handleChangeForShared ( filter : any , key : string , value : string ) {
472474 // handleValueFieldChange(filter, value)
@@ -482,6 +484,7 @@ const FilterComponent = ({
482484 }
483485
484486 setFilter ( [ ...filters ] ) ;
487+ localStorage . setItem ( 'logical_operator' , JSON . stringify ( 'and' ) ) ;
485488 }
486489 function handleChangeForSearchable ( field : any , value : string ) {
487490 // filter[key].selectedValue =
@@ -527,7 +530,7 @@ const FilterComponent = ({
527530
528531 setFilter ( [ ...filters ] ) ;
529532
530- console . log ( filters , 'field' ) ;
533+ localStorage . setItem ( 'logical_operator' , JSON . stringify ( 'and' ) ) ;
531534 }
532535
533536 function addAnotherFilter ( ) {
@@ -705,8 +708,10 @@ const FilterComponent = ({
705708 filterValue : value ,
706709 } ,
707710 ] ) ;
711+ localStorage . setItem ( 'logical_operator' , JSON . stringify ( 'or' ) ) ;
708712 } else {
709713 setFilter ( [ getInitials ( ) ] ) ;
714+ localStorage . setItem ( 'logical_operator' , JSON . stringify ( 'and' ) ) ;
710715 }
711716 }
712717
0 commit comments