mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
Fix: close connections correctly (#29)
This commit is contained in:
parent
17b24c4f49
commit
5dc94c0120
@ -20,7 +20,7 @@ export function Group (props: GroupProps) {
|
|||||||
const list: string[] = []
|
const list: string[] = []
|
||||||
const snapshot = await getConnections()
|
const snapshot = await getConnections()
|
||||||
for (const connection of snapshot.data.connections) {
|
for (const connection of snapshot.data.connections) {
|
||||||
if (connection.chains.includes(name)) {
|
if (connection.chains.includes(props.config.name)) {
|
||||||
list.push(connection.id)
|
list.push(connection.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user