mirror of
https://github.com/readest/readest.git
synced 2026-07-09 16:00:16 +00:00
applyMarginAndGap re-fetches getViewSettings(bookKey) with a non-null assertion, but it runs from effects/observers that can fire after the book is torn down, when getViewSettings returns null. The `!` hid that, so getViewInsets / viewSettings.showHeader threw "Cannot read properties of null (reading 'showHeader')" (READEST-2V). Bail when there is no view left to lay out. Fixes READEST-2V Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| readest-app | ||
| readest-calibre-plugin | ||
| readest.koplugin | ||