Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 38b386d3 authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

Fix todo list issue

parent 3d969697
Branches
Tags
1 merge request!151Docs updates, version banner, and todo lists
......@@ -26,7 +26,7 @@
var todoItems = document.getElementsByClassName('admonition-todo');
var todolist = document.getElementById('todolist')
if(todoItems.length == 0) {
if(todoItems.length == 0 || !todoItems[0].hasAttribute('id')) {
modalfortodoitemsparent.remove();
} else {
for (var i = 0; i < todoItems.length; ++i) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment