Skip to content

Commit

Permalink
refactor(template): remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
didimmova committed Apr 17, 2024
1 parent d48bb76 commit a07b2df
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/app/services/rendering/toc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ export class TocRenderingService extends RenderingService implements ResizableOb
let text = $(anchor).attr("title");
let parent = $(anchor).parent() as unknown as JQuery<HTMLLIElement>;
let parentNodes: JQuery<HTMLLIElement>[] = parent.parents<HTMLLIElement>("ul>li") as unknown as JQuery<HTMLLIElement>[];
let latest = parentNodes.length > 0 ? parentNodes[parentNodes.length - 1] : parent;
for (let i = 0; i < parentNodes.length; i++) {
let parentText;
let parentNode = $(parentNodes[i]);
Expand Down

0 comments on commit a07b2df

Please sign in to comment.