Fix checking for undefined behaviour when viewing a task
continuous-integration/drone/push Build was killed Details

This commit is contained in:
kolaente 2021-03-23 22:26:54 +01:00
parent 6fbfef661d
commit 35ed61839d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="heading">
<h1 class="title task-id">
{{ task.getTextIdentifier() }}
{{ task.getTextIdentifier && task.getTextIdentifier() ? task.getTextIdentifier() : '' }}
</h1>
<div class="is-done" v-if="task.done">Done</div>
<h1

View File

@ -182,6 +182,10 @@ Vue.component('card', Card)
Vue.mixin({
methods: {
formatDateSince: date => {
if (date === null) {
return ''
}
if (typeof date === 'string') {
date = new Date(date)
}
@ -198,6 +202,10 @@ Vue.mixin({
return formatted
},
formatDate: date => {
if (date === null) {
return ''
}
if (typeof date === 'string') {
date = new Date(date)
}