mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
Empty folders should show in vfs
This commit is contained in:
@@ -500,6 +500,14 @@ export class WorkspaceVFS {
|
||||
|
||||
const folderPaths = this.buildFolderPaths(folderRows)
|
||||
|
||||
// Register all folders in the VFS so empty folders are discoverable.
|
||||
for (const { folderId } of folderRows) {
|
||||
const folderPath = folderPaths.get(folderId)
|
||||
if (folderPath) {
|
||||
this.files.set(`workflows/${folderPath}/.folder`, '')
|
||||
}
|
||||
}
|
||||
|
||||
await Promise.all(
|
||||
workflowRows.map(async (wf) => {
|
||||
const safeName = sanitizeName(wf.name)
|
||||
|
||||
Reference in New Issue
Block a user