refactor(s2a): Remove unused getGroupLabel helper function

- Delete getGroupLabel function that was no longer being used in the component
- Simplify group display logic by removing redundant label formatting utility
- Clean up code to improve maintainability and reduce unused function definitions
This commit is contained in:
2026-02-07 20:21:30 +08:00
parent b07200faec
commit 7aa708be22

View File

@@ -296,12 +296,6 @@ export default function S2AConfig() {
}
}
// 获取分组显示文字: "name #id" 或 "#id"
const getGroupLabel = (id: number): string => {
const group = availableGroups.find(g => g.id === id)
return group ? `${group.name} #${id}` : `#${id}`
}
const handleAddGroupId = () => {
const id = parseInt(newGroupId, 10)
if (!isNaN(id) && !formGroupIds.includes(id)) {