mirror of
https://github.com/thegeneralist01/archivr
synced 2026-10-09 12:55:00 +02:00
fix: guard detailMatchesSelection against null detail/selectedEntry
When both detail and selectedEntry are null (initial render or mid-navigation while a detail fetch is in flight), detail?.summary?.entry_uid and selectedEntry?.entry_uid both evaluate to undefined, making the equality true and causing a crash on detail.latest_summary. Add selectedEntry?.entry_uid != null guard so the condition short-circuits false whenever there is no real selection.
This commit is contained in:
parent
79ac44834e
commit
9b2ecb8d7b
3 changed files with 4 additions and 3 deletions
49
crates/archivr-server/static/assets/index-BxBKvOHp.js
Normal file
49
crates/archivr-server/static/assets/index-BxBKvOHp.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue