Open ruff-hi opened 2 years ago
You need to move the numTasks line to the 'else' part of if any tasks statement.
getDom: function() { var wrapper = document.createElement('div'); wrapper.className = "container "; wrapper.className += this.config.tableClass; if (!this.tasks) { wrapper.innerHTML = (this.loaded) ? "EMPTY" : "LOADING"; wrapper.className = this.config.tableClass + " dimmed"; return wrapper; } else { var numTasks = Object.keys(this.tasks).length; }
You need to move the numTasks line to the 'else' part of if any tasks statement.