Skip to content

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezhik Kyzyl-ool committed Mar 6, 2024
1 parent bf80260 commit c08db01
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/runtime/TabsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,23 +224,23 @@ export class TabsController {

private getTabs(target: HTMLElement): {tabs: Tab[]; nodes: NodeListOf<HTMLElement>} {
const group = (target.closest(Selector.TABS) as HTMLElement)?.dataset.diplodocGroup;
const tabs = (
const nodes = (
target.closest(Selector.TAB_LIST) as HTMLElement
)?.querySelectorAll<HTMLElement>(Selector.TAB);

const result: Tab[] = [];
tabs.forEach((tabEl) => {
const tabs: Tab[] = [];
nodes.forEach((tabEl) => {
const key = tabEl?.dataset.diplodocKey;
if (!key) {
return;
}

result.push({
tabs.push({
group,
key,
});
});

return {tabs: result, nodes: tabs};
return {tabs, nodes};
}
}

0 comments on commit c08db01

Please sign in to comment.