Skip to content

Commit

Permalink
Reinstate parameter name to 'Delimter'
Browse files Browse the repository at this point in the history
- I have reinstated the original parameter name to Delimter.
  • Loading branch information
PrimeJoker committed Mar 20, 2024
1 parent 6809ad0 commit f488ef4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public partial class MudCsvMapper : MudComponentBase
public bool NormalizeHeaders { get; set; }

[Parameter]
public string Delimiter { get; set; } = ",";
public string Delimter { get; set; } = ",";

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

0 comments on commit f488ef4

Please sign in to comment.