File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -72,19 +72,20 @@ const handler = {
72
72
Object . values ( dataStore . groups ) ,
73
73
value ,
74
74
) ;
75
+ }
76
+ // Start: Remove this code if removing Feature Flag for isMultipleGroupSharingEnabled
77
+ else if ( value === '' ) {
78
+ if ( dataStore . groups == null ) break ;
79
+ dataStore . filteredGroupsIds = Object . values ( dataStore . groups ) . map (
80
+ ( group ) => group . id ,
81
+ ) ;
75
82
} else {
76
- if ( value === '' ) {
77
- if ( dataStore . groups == null ) break ;
78
- dataStore . filteredGroupsIds = Object . values ( dataStore . groups ) . map (
79
- ( group ) => group . id ,
80
- ) ;
81
- } else {
82
- const search = value . toLowerCase ( ) ;
83
- dataStore . filteredGroupsIds = Object . values ( dataStore . groups )
84
- . filter ( ( group ) => group . title . toLowerCase ( ) . includes ( search ) )
85
- . map ( ( group ) => group . id ) ;
86
- }
83
+ const search = value . toLowerCase ( ) ;
84
+ dataStore . filteredGroupsIds = Object . values ( dataStore . groups )
85
+ . filter ( ( group ) => group . title . toLowerCase ( ) . includes ( search ) )
86
+ . map ( ( group ) => group . id ) ;
87
87
}
88
+ // End: Remove this code if removing Feature Flag for isMultipleGroupSharingEnabled
88
89
obj [ prop ] = value ;
89
90
break ;
90
91
case 'isGroupCreationModalOpen' :
You can’t perform that action at this time.
0 commit comments