Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 5, 2021
1 parent 48a8e8f commit 0313b9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/showcase/datatable/DataTableExportDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export class DataTableExportDemo extends Component {
const reader = new FileReader();
reader.onload = (e) => {
const csv = e.target.result;
const data = csv.split('\n');
const data = csv.split('\\n');
// Prepare DataTable
const cols = data[0].split(',');
Expand Down Expand Up @@ -496,7 +496,7 @@ export const DataTableExportDemo = () => {
const reader = new FileReader();
reader.onload = (e) => {
const csv = e.target.result;
const data = csv.split('\n');
const data = csv.split('\\n');
// Prepare DataTable
const cols = data[0].split(',');
Expand Down Expand Up @@ -691,7 +691,7 @@ export const DataTableExportDemo = () => {
const reader = new FileReader();
reader.onload = (e) => {
const csv = e.target.result;
const data = csv.split('\n');
const data = csv.split('\\n');
// Prepare DataTable
const cols = data[0].split(',');
Expand Down

0 comments on commit 0313b9c

Please sign in to comment.