[Glitch] Implement new Collection inclusion rules in Collection accounts editor

Port a40b071640 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion authored and Claire committed 2026-04-17 18:12:39 +02:00
1 parent fe869936ab
commit 8257bdcbca
6 files changed
+41 -124

No files matched your search

@@ -164,7 +164,7 @@ const ListMembers: React.FC<{
const [mode, setMode] = useState<Mode>('remove');
const {
accountIds: searchAccountIds,
accounts: accountsFromSearch,
isLoading: loadingSearchResults,
searchAccounts: handleSearch,
} = useSearchAccounts({
@@ -177,6 +177,7 @@ const ListMembers: React.FC<{
}
},
});
const accountIdsFromSearch = accountsFromSearch.map((item) => item.id);
useEffect(() => {
if (id) {
@@ -220,7 +221,7 @@ const ListMembers: React.FC<{
let displayedAccountIds: string[];
if (mode === 'add' && searching) {
displayedAccountIds = searchAccountIds;
displayedAccountIds = accountIdsFromSearch;
} else {
displayedAccountIds = accountIds;
}