fix: Update filter processing logic in EasySwitchManager to ensure all communities are tracked, improving data integrity and consistency in gateway assignments.
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 2m2s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 2m2s
This commit is contained in:
1 parent
c06294d9f2
commit
f1dfb13d8e
1 file changed
+4
-1
@@ -251,14 +251,17 @@ function EasySwitchManager() {
|
||||
currentFilters.forEach(filter => {
|
||||
const newGateway = communitiesMap.get(filter.community);
|
||||
if (newGateway) {
|
||||
// Обновляем gateway
|
||||
updatedFilters.push({
|
||||
...filter,
|
||||
gateway: newGateway
|
||||
});
|
||||
processedCommunities.add(filter.community);
|
||||
} else {
|
||||
// Оставляем без изменений
|
||||
updatedFilters.push(filter);
|
||||
}
|
||||
// ВАЖНО: добавляем в processedCommunities в любом случае
|
||||
processedCommunities.add(filter.community);
|
||||
});
|
||||
|
||||
// Добавляем новые фильтры для communities, которых не было
|
||||
|
||||
Reference in new issue
Block a user