Merge pull request #2302 from chlupac/FileServiceFix

FileService fix
This commit is contained in:
Shaun Walker 2022-07-20 08:23:41 -04:00 committed by GitHub
commit 928f2dd496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ namespace Oqtane.Services
var path = WebUtility.UrlEncode(folderPath);
List<File> files = await GetJsonAsync<List<File>>($"{Apiurl}/{siteId}/{path}");
return files.OrderBy(item => item.Name).ToList();
return files?.OrderBy(item => item.Name).ToList();
}
public async Task<File> GetFileAsync(int fileId)