From 660eb3e67952fd6b77fc78b953107f1cfada8008 Mon Sep 17 00:00:00 2001 From: nsemets Date: Mon, 22 Sep 2025 14:00:36 +0300 Subject: [PATCH] fix(wiki): wiki current view --- .../components/wiki/view-section/view-section.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/components/wiki/view-section/view-section.component.ts b/src/app/shared/components/wiki/view-section/view-section.component.ts index 1a7a5726b..45c33345c 100644 --- a/src/app/shared/components/wiki/view-section/view-section.component.ts +++ b/src/app/shared/components/wiki/view-section/view-section.component.ts @@ -50,7 +50,7 @@ export class ViewSectionComponent { constructor() { effect(() => { const versions = this.versions(); - if (versions?.length && this.viewOnly()) { + if (versions?.length || this.viewOnly()) { this.selectedVersion.set(versions[0]?.id || null); this.selectVersion.emit(versions[0]?.id); } else {