Skip to content

Commit 9671d83

Browse files
fix: ImportSampleData fails in direct .zip mode (#2980)
Co-authored-by: Artem Dudarev <artem@virtoworks.com>
1 parent c312739 commit 9671d83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/VirtoCommerce.Platform.Web/Controllers/Api/PlatformExportImportController.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,11 @@ private async Task<IList<SampleDataInfo>> InnerDiscoverSampleDataAsync()
179179
{
180180
return new List<SampleDataInfo>
181181
{
182-
new() { Url = sampleDataUrl }
182+
new()
183+
{
184+
Name = Path.GetFileNameWithoutExtension(sampleDataUrl),
185+
Url = sampleDataUrl,
186+
},
183187
};
184188
}
185189

0 commit comments

Comments
 (0)