Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
PPL Sosial
tbcare
tbcare-web
Commits
5b54f8de
Commit
5b54f8de
authored
May 31, 2021
by
Nabilah Adani
Browse files
[CHORES] delete console.log
parent
7215e912
Pipeline
#80150
passed with stages
in 3 minutes and 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/scenes/Home/components/Statistic/index.test.tsx
View file @
5b54f8de
...
...
@@ -121,7 +121,7 @@ describe('<Statistic />', () => {
});
it
(
'
sets ignoreDateRangeFilter age after clicking ignoreDateRange button
'
,
()
=>
{
it
(
'
sets ignoreDateRangeFilter age after clicking ignoreDateRange
Filter
button
'
,
()
=>
{
const
wrapper
=
mount
(<
Statistic
isTable
=
{
false
}
type
=
{
StatisticType
.
Age
}
...
...
src/scenes/Home/components/Statistic/index.tsx
View file @
5b54f8de
...
...
@@ -73,7 +73,6 @@ function Statistic({
const
generateFilter
=
(
filterType
:
StatisticType
)
=>
{
var
data
=
{}
as
ExportPayload
;
console
.
log
((
new
Date
(
dateKeyFilter
.
start_date
.
valueOf
()
+
1000
*
3600
*
24
)).
toISOString
().
split
(
'
T
'
)[
0
])
var
start_date_Table
=
(
ignoreDateRangeTable
)
?
"
0010-01-01
"
:
(
new
Date
(
dateKeyTable
.
start_date
.
valueOf
()
+
1000
*
3600
*
24
)).
toISOString
().
split
(
'
T
'
)[
0
];
var
end_date_Table
=
(
ignoreDateRangeTable
)
?
"
9990-12-31
"
:
(
new
Date
(
dateKeyTable
.
end_date
.
valueOf
()
+
1000
*
3600
*
24
)).
toISOString
().
split
(
'
T
'
)[
0
];
var
start_date_Chart
=
(
ignoreDateRangeFilter
)
?
"
0010-01-01
"
:
(
new
Date
(
dateKeyFilter
.
start_date
.
valueOf
()
+
1000
*
3600
*
24
)).
toISOString
().
split
(
'
T
'
)[
0
];
...
...
@@ -181,7 +180,6 @@ function Statistic({
const
{
data
}
=
response
;
setstatisticsDateData
(
data
);
}
console
.
log
(
statisticsDateData
)
};
const
fetchStatisticsByDateTable
=
async
()
=>
{
...
...
@@ -202,7 +200,6 @@ function Statistic({
const
{
data
}
=
response
;
setSelectedDateData
(
data
);
}
console
.
log
(
selectedDateData
)
};
const
setActiveIndexHelper
=
async
(
tempData
:
StatisticData
)
=>
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment