fix: admin/fs: layout problem on empty vfs
Massimo Melina committed
Jan 16, 2023 at 12:11 UTC
c0d771c95937f4144ca3f761e879403059b3c3a2
1 file changed
+2
-1
admin/src/VfsTree.ts
+2
-1
@@ -92,7 +92,8 @@ export default function VfsTree({ id2node }:{ id2node: Map<string, VfsNode> }) {
92
}
93
}),
94
nodeId: id
95
- }, isRoot && !node.children?.length ? h('i', {}, "nothing here") : node.children?.map(recur))
95
+ }, isRoot && !node.children?.length ? h(TreeItem, { nodeId: '?', label: h('i', {}, "nothing here") })
96
+ : node.children?.map(recur))
97
}
98
99
}