perf: 优化全局规则禁用条件

This commit is contained in:
AIsouler
2024-03-08 00:41:56 +08:00
parent 5fad0c6bdd
commit f54ebcfcf1

View File

@@ -63,7 +63,7 @@ function filterAppsByGroup(apps: any[], groupNamePrefix: string): string[] {
(a) =>
a.groups.filter((g: { name: string }) =>
g.name.startsWith(groupNamePrefix),
).length === 1,
).length > 0,
)
.map((a) => a.id);
}