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
2020
PPL-C
Diskominfo-D'Blood
Mantan Aab-D Blood
Commits
1af6fc61
Commit
1af6fc61
authored
Jun 02, 2020
by
Nabila Febri Viola
Browse files
[CHORES] Fix eslint and flake8
parent
01bf3008
Pipeline
#48926
passed with stages
in 2 minutes and 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
backend/acara_donor/tests.py
View file @
1af6fc61
...
...
@@ -2,7 +2,6 @@ import datetime
from
unittest.mock
import
patch
from
django.contrib.auth
import
get_user_model
from
django.test
import
TestCase
from
django.urls
import
reverse
from
django.utils
import
timezone
from
django.utils.timezone
import
localtime
from
rest_framework
import
status
...
...
frontend/src/components/ModalEventDonorSubmission.js
View file @
1af6fc61
...
...
@@ -25,7 +25,7 @@ const ModalEventDonorSubmission = ({ show, handleClose }) => {
validationSchema
:
EventSubmissionSchema
,
})
const
onSubmit
=
async
(
data
)
=>
{
const
onSubmit
=
async
data
=>
{
const
tanggal_donor
=
moment
(
data
.
tanggal_donor
).
format
(
"
YYYY-MM-DD
"
)
const
jam_mulai
=
moment
(
data
.
jam_mulai
).
format
(
"
HH:mm
"
)
const
jam_selesai
=
moment
(
data
.
jam_selesai
).
format
(
"
HH:mm
"
)
...
...
@@ -36,7 +36,7 @@ const ModalEventDonorSubmission = ({ show, handleClose }) => {
delete
data
[
"
jam_selesai
"
]
const
formData
=
new
FormData
()
Object
.
keys
(
data
).
forEach
(
(
key
)
=>
{
Object
.
keys
(
data
).
forEach
(
key
=>
{
if
(
typeof
data
[
key
]
!=
"
undefined
"
)
formData
.
append
(
key
,
data
[
key
])
})
...
...
@@ -45,7 +45,7 @@ const ModalEventDonorSubmission = ({ show, handleClose }) => {
window
.
alert
(
"
Pengajuan acara donor telah disimpan.
"
)
handleClose
()
})
.
catch
(
(
error
)
=>
{
.
catch
(
error
=>
{
if
(
error
.
response
)
{
window
.
alert
(
JSON
.
stringify
(
error
.
response
.
data
))
}
else
{
...
...
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