@samitouri / QOSami-HFS / commits / 62fab190

fix: admin/fs: visualization of the "roots" icon for folders was inconsistent

Massimo Melina committed Apr 13, 2025 at 19:54 UTC 62fab19027a2ad6c5fdf291ae2a775261033f9c1
1 file changed +1 -1
admin/src/VfsTree.ts
+1 -1
@@ -104,7 +104,7 @@ export default function VfsTree({ id2node, statusApi }:{ id2node: Map<string, Vf
104 ev.preventDefault()
105 ev.stopPropagation()
106 }
107 - }, [setExpanded])
107 + }, [setExpanded, statusApi.data])
108 const ref = useRef<HTMLUListElement>(null)
109 const [expandAll, toggleBtn] = useToggleButton("Collapse all", "Expand all", exp => ({
110 icon: exp ? UnfoldLess : UnfoldMore,