auto expand

This commit is contained in:
pompurin404 2024-09-29 12:18:34 +08:00
parent 90b7373af2
commit c494907b19
No known key found for this signature in database

View File

@ -288,7 +288,13 @@ const Proxies: React.FC = () => {
size="sm"
isIconOnly
onPress={() => {
if (!isOpen[index]) return
if (!isOpen[index]) {
setIsOpen((prev) => {
const newOpen = [...prev]
newOpen[index] = true
return newOpen
})
}
let i = 0
for (let j = 0; j < index; j++) {
i += groupCounts[j]