Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public partial class MudCsvMapper : MudComponentBase
///
/// </summary>
[Parameter]
public string Delimter { get; set; } = ",";
public string Delimiter { get; set; } = ",";

[Inject] private IDialogService? _dialogService { get; set; }
[Inject] private NavigationManager? _navigationManager { get; set; }
Expand Down Expand Up @@ -265,7 +265,7 @@ private void CreateCsvContent()
using var reader = new StreamReader(new MemoryStream(FileContentByte ?? new byte[0]), Encoding.Default);
var config = new CsvConfiguration(CultureInfo.InvariantCulture)
{
Delimiter = Delimter,
Delimiter = Delimiter,
IgnoreBlankLines = true,
HasHeaderRecord = true
};
Expand Down Expand Up @@ -305,7 +305,8 @@ private async Task OnImport()
{
var config = new CsvHelper.Configuration.CsvConfiguration(CultureInfo.InvariantCulture)
{
PrepareHeaderForMatch = (header) => header.Header
PrepareHeaderForMatch = (header) => header.Header,
Delimiter = Delimiter
};
UpdateHeaderLineWithMatchedFields();
if(!_includeUnmappedData) RemoveUnmappedData();
Expand Down