diff --git a/lua/neorg/modules/core/qol/todo_items/module.lua b/lua/neorg/modules/core/qol/todo_items/module.lua index b593b6c50..e784224e3 100644 --- a/lua/neorg/modules/core/qol/todo_items/module.lua +++ b/lua/neorg/modules/core/qol/todo_items/module.lua @@ -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