diff --git a/Oqtane.Client/Modules/Controls/FileManager.razor b/Oqtane.Client/Modules/Controls/FileManager.razor index c37cef543..f6ee48c25 100644 --- a/Oqtane.Client/Modules/Controls/FileManager.razor +++ b/Oqtane.Client/Modules/Controls/FileManager.razor @@ -168,7 +168,21 @@ ShowSuccess = true; } - _folders = await FolderService.GetFoldersAsync(ModuleState.SiteId); + if (ShowFolders) + { + _folders = await FolderService.GetFoldersAsync(ModuleState.SiteId); + } + else + { + if (FolderId != -1) + { + var folder = await FolderService.GetFolderAsync(FolderId); + if (folder != null) + { + _folders = new List { folder }; + } + } + } if (!string.IsNullOrEmpty(Folder) && Folder != Constants.PackagesFolder) {