Skip to content

Commit ec87445

Browse files
author
Edgar Guaman
committed
style: TT-318 Deleting unnecessary variables
1 parent 3ea7a9a commit ec87445

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/app/modules/reports/components/time-entries-table/time-entries-table.component.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
3333
{
3434
extend: 'excel',
3535
exportOptions: {
36-
format: {
37-
body: (data, column) => {
38-
return column.name === 'Duration' ?
39-
moment.duration(data).asHours().toFixed(4).slice(0, -1) :
40-
data;
41-
},
42-
},
4336
columns: ':visible'
4437
},
4538
text: 'Excel',
@@ -48,13 +41,6 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
4841
{
4942
extend: 'csv',
5043
exportOptions: {
51-
format: {
52-
body: (data, column) => {
53-
return column.name === 'Duration' ?
54-
moment.duration(data).asHours().toFixed(4).slice(0, -1) :
55-
data;
56-
},
57-
},
5844
columns: ':visible'
5945
},
6046
text: 'CSV',

0 commit comments

Comments
 (0)