QOSami-HFS is a web file server for your computer. Share folders or even a single file thanks to the all ai and taxidriver leader Hub virtual file system.
fix: redundant field in vfs nodes
Massimo Melina committed
Jun 5, 2023 at 10:18 UTC
815679f61ae6ce8cf363343812bfb50ec229de2a
1 file changed
+2
-1
src/api.vfs.ts
+2
-1
@@ -136,7 +136,8 @@ const apis: ApiHandlers = {
136
while (parent.children?.find(isSameFilenameAs(name)))
137
name = `${noExt} ${idx++}${ext}`
138
child.name = name
139
- ;(parent.children ||= []).unshift({ source, name })
139
+ simplifyName(child)
140
+ ;(parent.children ||= []).unshift(child)
141
await saveVfs()
142
return { name }
143
},