Fix changing task dates
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-06-23 22:41:52 +02:00
parent 155d24da95
commit 58f6762f5c
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 3 deletions

View File

@ -34,9 +34,9 @@ export default class TaskService extends AbstractService {
model.listId = Number(model.listId)
// Convert dates into an iso string
model.dueDate = model.dueDate ? null : formatISO(new Date(model.dueDate))
model.startDate = model.startDate ? null : formatISO(new Date(model.startDate))
model.endDate = model.endDate ? null : formatISO(new Date(model.endDate))
model.dueDate = !model.dueDate ? null : formatISO(new Date(model.dueDate))
model.startDate = !model.startDate ? null : formatISO(new Date(model.startDate))
model.endDate = !model.endDate ? null : formatISO(new Date(model.endDate))
model.created = formatISO(model.created)
model.updated = formatISO(model.updated)