Checklistitems are now inserted always at the end of the checklist

This commit is contained in:
Martin Filser 2021-02-09 16:08:05 +01:00
parent d5ea44a760
commit e8b6b78dfa
2 changed files with 6 additions and 1 deletions

View file

@ -91,6 +91,11 @@ Checklists.helpers({
{ sort: ['sort'] },
);
},
lastItem() {
const allItems = this.items().fetch();
const ret = allItems[allItems.length - 1];
return ret;
},
finishedCount() {
return ChecklistItems.find({
checklistId: this._id,