Skip to content

Commit

Permalink
fix(todo-items): error when switching from on-hold item with children
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jun 11, 2024
1 parent 5239a98 commit f03435f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/qol/todo_items/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ module.public = {

for child in todo_item_at_cursor:iter_children() do
if module.public.get_todo_item_type(child) then
next = alternative_types[get_index(alternative_types, todo_item_type)]
next = alternative_types[get_index(alternative_types, todo_item_type)] or alternative_types[1]
break
end
end
Expand Down

0 comments on commit f03435f

Please sign in to comment.