Skip to content

Commit

Permalink
fix: fetch title of group of newly created page in a newly created group
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Dec 5, 2023
1 parent 1c2af25 commit b4fdedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiki/wiki/doctype/wiki_page/templates/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h5 class="modal-title" id="addGroupModalTitle">Title</h5>
.children("li");

items.each(function(item) {
name = $(this).children(".collapsible").children("span.sidebar-group-title").text();
name = $(this).children(".collapsible").children("span.sidebar-group-title, span.text-sm").text();
side[name] = [];

$(this).children(".list-unstyled").children(".sidebar-item").each(function (item) {
Expand Down

0 comments on commit b4fdedf

Please sign in to comment.