mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-12 20:16:15 -08:00
fix(xtream): fix double click on initial breadcrumb
This commit is contained in:
1 parent
4464d8556f
commit
fb9b118217
1 file changed
+1
-1
@@ -433,11 +433,11 @@ export class XtreamMainContainerComponent implements OnInit {
|
||||
* @param breadcrumb clicked breadcrumb item
|
||||
*/
|
||||
breadcrumbClicked(breadcrumb: Breadcrumb) {
|
||||
this.items = [];
|
||||
const itemIndex = this.breadcrumbs.findIndex((i) => i === breadcrumb);
|
||||
|
||||
// do nothing if last breadcrumb child was clicked
|
||||
if (itemIndex === this.breadcrumbs.length - 1) return;
|
||||
this.items = [];
|
||||
|
||||
this.breadcrumbs.splice(
|
||||
itemIndex + 1,
|
||||
|
||||
Reference in new issue
Block a user