support multi group for node

This commit is contained in:
codetypes committed 2025-03-19 11:02:32 +08:00
1 parent 9cdc4cee68
commit 7395935e6f
7 files changed
+86 -47

No files matched your search

+1 -1
View File
@@ -765,7 +765,7 @@ const NodeInspector: FC = () => {
rules={[
{
validator() {
if (def.group && !usingGroups[def.group]) {
if (def.group && !def.group.some((g) => usingGroups[g])) {
return Promise.reject(new Error(t("node.invalidGroup", { group: def.group })));
}
return Promise.resolve();