Fixed a bug where chapter detail page wasn't default selecting Review tab when there was no Details tab.
This commit is contained in:
parent
eb1a524b2f
commit
4261b61f0f
1 changed files with 5 additions and 1 deletions
|
|
@ -279,7 +279,11 @@ export class ChapterDetailComponent implements OnInit {
|
|||
|
||||
this.showDetailsTab = hasAnyCast(this.chapter) || (this.chapter.genres || []).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.cdRef.markForCheck();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue