fix: admin/shared: don't show the warning while the vfs is loading
Massimo Melina committed
Apr 14, 2026 at 14:24 UTC
ae608ffa93f11832d1a2ab76e64945145f3a2c7a
2 files changed
+3
-3
admin/src/VfsPage.ts
+1
-1
@@ -61,7 +61,7 @@ export default function VfsPage({ setTitleSide }: PageProps) {
61
closeDialogRef.current()
62
}, [movingFile])
63
64
- const nothingShared = !data?.root?.children?.length && !data?.root?.source
64
+ const nothingShared = data && !data.root?.children?.length && !data.root?.source
65
const hintElement = useMemo(() => nothingShared ? h(Alert, {
66
severity: 'warning',
67
children: h(Fragment, {}, "Add something to your virtual file system — click the ", h(Add), "button, or set a source for the Home folder"),
src/commands.ts
+2
-2
@@ -182,8 +182,8 @@ const commands = {
182
'list-plugins': {
183
params: '',
184
cb() {
185
- mapPlugins(p => console.log('ON:', p.id), false)
186
- getInactivePlugins().map(p => console.log('OFF:', p.id))
185
+ mapPlugins(p => console.log('On:', p.id), false)
186
+ getInactivePlugins().map(p => console.log('Off:', p.id))
187
}
188
},
189
'purge-file-attr': {