Skip to content

Commit 4796466

Browse files
committed
chore: add comment for feature flag removal
1 parent e72f681 commit 4796466

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

groups/script.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,20 @@ const handler = {
7272
Object.values(dataStore.groups),
7373
value,
7474
);
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+
);
7582
} 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);
8787
}
88+
// End: Remove this code if removing Feature Flag for isMultipleGroupSharingEnabled
8889
obj[prop] = value;
8990
break;
9091
case 'isGroupCreationModalOpen':

0 commit comments

Comments
 (0)