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
2048883b
Commit
2048883b
authored
May 31, 2021
by
Sean Zeliq Urian
Browse files
[CHORUS] remove debuging info
parent
1ef209ac
Pipeline
#79940
passed with stages
in 3 minutes and 40 seconds
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
src/scenes/Home/components/Statistic/index.tsx
View file @
2048883b
This diff is collapsed.
Click to expand it.
src/services/hooks/useMainService/index.tsx
View file @
2048883b
...
...
@@ -363,17 +363,16 @@ export default function useMainService(token: string) {
end_date
:
String
,
ignoreDateFilterQuery
:
boolean
)
{
let
param
=
"
?page=
"
+
page
+
"
&
"
;
if
(
roleFilterQuery
!==
"
Semua Peran
"
)
{
param
+=
"
is_admin=
"
+
(
roleFilterQuery
.
toLowerCase
()
===
"
admin
"
)
+
"
&
"
;
let
param
=
'
?page=
'
+
page
+
'
&
'
;
if
(
roleFilterQuery
!==
'
Semua Peran
'
)
{
param
+=
'
is_admin=
'
+
(
roleFilterQuery
.
toLowerCase
()
===
'
admin
'
)
+
'
&
'
;
}
if
(
!
ignoreDateFilterQuery
)
{
param
+=
"
start_date=
"
+
start_date
+
"
&
"
;
param
+=
"
end_date=
"
+
end_date
;
param
+=
'
start_date=
'
+
start_date
+
'
&
'
;
param
+=
'
end_date=
'
+
end_date
;
}
const
endpointWithPaging
=
END_POINTS
.
LOGS
([
param
]);
console
.
log
(
endpointWithPaging
)
return
fetchWithAuthentication
(
endpointWithPaging
.
slice
(
0
,
-
1
),
Method
.
GET
);
}
...
...
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