Skip to content

Commit

Permalink
Fixed XLSX parsing due to breaking change in ClosedXML package
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Jan 6, 2024
1 parent b74f6ef commit b8f2a81
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Skybrud.Umbraco.Redirects.Exceptions;
using System.Linq;

namespace Skybrud.Umbraco.Redirects.Import;
namespace Skybrud.Umbraco.Redirects.Import;

public partial class RedirectsImportService {

Expand Down Expand Up @@ -42,7 +42,7 @@ public partial class RedirectsImportService {

// Iterate through the columns of the row
foreach (IXLCell cell in row.Cells(firstCell.Address.ColumnNumber, lastCell.Address.ColumnNumber)) {
table.Rows[^1][cell.WorksheetColumn().ColumnNumber() - 1] = cell.Value.GetText();
table.Rows[^1][cell.WorksheetColumn().ColumnNumber() - 1] = cell.Value.ToString();
}

}
Expand Down

0 comments on commit b8f2a81

Please sign in to comment.