From 9cef9130cc89e53457e7d302e58be6a44f606ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Mon, 24 Aug 2026 23:42:00 +0300 Subject: [PATCH] fix: auto-load first library section on open PrayerView's select displayed the first option natively while activeSection stayed null, so content only appeared after manually changing selection. Initialize to first section and load it on render for all 8 collections. --- src/ui/prayer-view.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/prayer-view.ts b/src/ui/prayer-view.ts index 54a69ed..a89a761 100644 --- a/src/ui/prayer-view.ts +++ b/src/ui/prayer-view.ts @@ -191,6 +191,9 @@ export class PrayerView { async render() { const sections = this.getSections(); + if (!this.activeSection) { + this.activeSection = sections[0]?.id ?? null; + } const isTriodion = this.collection === 'triodion'; const subtitle = isTriodion ? this.t.triodion.subtitle : this.collection === 'akathists' ? this.t.akathists.subtitle @@ -250,6 +253,8 @@ export class PrayerView { this.activeSection = id; this.loadSection(id); }); + + if (this.activeSection) void this.loadSection(this.activeSection); } private async loadSection(id: string) {