Fixed a bug where chapter detail page wasn't default selecting Review tab when there was no Details tab.

This commit is contained in:
Joseph Milazzo 2025-05-01 16:49:07 -05:00
parent eb1a524b2f
commit 4261b61f0f

View file

@ -279,7 +279,11 @@ export class ChapterDetailComponent implements OnInit {
this.showDetailsTab = hasAnyCast(this.chapter) || (this.chapter.genres || []).length > 0 || this.showDetailsTab = hasAnyCast(this.chapter) || (this.chapter.genres || []).length > 0 ||
(this.chapter.tags || []).length > 0 || this.chapter.webLinks.length > 0; (this.chapter.tags || []).length > 0 || this.chapter.webLinks.length > 0;
if (!this.showDetailsTab && this.activeTabId === TabID.Details) {
this.activeTabId = TabID.Reviews;
}
this.isLoading = false; this.isLoading = false;
this.cdRef.markForCheck(); this.cdRef.markForCheck();
}); });