Skip to content

Commit

Permalink
fix NameAttribute being ignored when writing object to sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
drgrieve committed Dec 12, 2024
1 parent 4be3c96 commit fd8e18e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoogleSheetsWrapper/SheetAppender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void AppendObject<T>(IEnumerable<T> dataRecords, int batchWaitTime = 1000
{
name = (nameAttribute as CsvHelper.Configuration.Attributes.NameAttribute).Names.FirstOrDefault() ?? name;
}
row.Values.Add(StringToCellData(header.Name));
row.Values.Add(StringToCellData(name));
}

rowData.Add(row);
Expand Down

0 comments on commit fd8e18e

Please sign in to comment.