Browse Source

repair stupidity;

chronos
stingl 3 years ago
parent
commit
d8ed85792a
  1. 10
      src/views/TasksForTracker.vue

10
src/views/TasksForTracker.vue

@ -83,12 +83,12 @@ export default { @@ -83,12 +83,12 @@ export default {
this.$store.state.selectedTracker.tasks = [];
}
let newTasks = [this.newTaskInput];
let newTasks = [];
if (this.newTaskInput.split(';') > 3) {
newTasks = this.newTaskInput.split(';').reverse().map((task) => {
return task.trim();
})
if (this.newTaskInput.split(';').length > 3) {
newTasks = this.newTaskInput.split(';').reverse().map((task) => task.trim());
} else {
newTasks.push(this.newTaskInput);
}
newTasks.forEach((task) => {

Loading…
Cancel
Save