Fixed "Tasks undefined" error

This commit is contained in:
kolaente 2018-09-10 19:46:20 +02:00
parent 28a5522434
commit 710485e091
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -28,7 +28,7 @@
</div>
</form>
<div class="box tasks" v-if="this.list.tasks.length > 0">
<div class="box tasks" v-if="this.list.tasks && this.list.tasks.length > 0">
<label class="task" v-for="l in list.tasks" v-bind:key="l.id" v-bind:for="l.id">
<input @change="markAsDone" type="checkbox" v-bind:id="l.id" v-bind:checked="l.done">
{{l.text}}