fix: admin/fs: adding a domain with default root won't be saved
Massimo Melina committed
Apr 20, 2024 at 21:08 UTC
091ce3af7f4e2bc1a84807c1db9211c73bd792fb
1 file changed
+1
-1
admin/src/VfsMenuBar.ts
+1
-1
@@ -64,7 +64,7 @@ export default function VfsMenuBar({ statusApi }: { statusApi: ApiObject }) {
64
{ k: 'root', label: "Home/Root", comp: VfsPathField, placeholder: "default", helperText: "Root path in VFS" },
65
],
66
toField: x => Object.entries(x || {}).map(([host,root]) => ({ host, root })),
67
- fromField: x => Object.fromEntries(x.map((row: any) => [row.host, row.root])),
67
+ fromField: x => Object.fromEntries(x.map((row: any) => [row.host, row.root || ''])),
68
},
69
{
70
k: 'roots_mandatory',