Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
todrfu committed Dec 22, 2020
2 parents 833e8af + e273d84 commit 8dd70c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/component/v2/plugins/todo.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ function filterTodos({ curYear, curMonth, exsitedTodos, toSetTodos }) {
function updateDatePropertyOfTodoLabel(todos, dates, showLabelAlways) {
const datesInfo = [...dates]
for (let todo of todos) {
let target = datesInfo[todo.date - 1]
let targetIdx = datesInfo.findIndex(
item => dateUtil.toTimeStr(item) === dateUtil.toTimeStr(todo)
)
let target = datesInfo[targetIdx]
if (!target) continue
if (showLabelAlways) {
target.showTodoLabel = true
Expand Down

0 comments on commit 8dd70c2

Please sign in to comment.