Skip to content

Commit

Permalink
headers back excel file fixes #469
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgirard committed Sep 29, 2017
1 parent 90f49f9 commit 98c53eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/app/isari-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ export class IsariDataService {
const workbook = { Sheets: {Sheet1: null}, SheetNames: ['Sheet1'] };
const sheet = {};
const range = {s: {c: Infinity, r: Infinity}, e: {c: -Infinity, r: -Infinity}};

// please can someone do better than that line ?
data = [Object.keys(data[0]), ...data]
for (let R = 0, l = data.length; R < l; R++) {
const line = data[R];
let C = 0;
Expand Down

1 comment on commit 98c53eb

@t8g
Copy link
Collaborator

@t8g t8g commented on 98c53eb Sep 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elle est bien cette ligne ;)

Please sign in to comment.