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 {
this.$store.state.selectedTracker.tasks = []; this.$store.state.selectedTracker.tasks = [];
} }
let newTasks = [this.newTaskInput]; let newTasks = [];
if (this.newTaskInput.split(';') > 3) { if (this.newTaskInput.split(';').length > 3) {
newTasks = this.newTaskInput.split(';').reverse().map((task) => { newTasks = this.newTaskInput.split(';').reverse().map((task) => task.trim());
return task.trim(); } else {
}) newTasks.push(this.newTaskInput);
} }
newTasks.forEach((task) => { newTasks.forEach((task) => {

Loading…
Cancel
Save