web/SettingsDropdown: prevent crash if selectedTitle is undefined

This commit is contained in:
wukko 2025-06-20 15:04:37 +06:00
parent 6e394cda29
commit c9fdfca239
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -42,7 +42,7 @@
</h4> </h4>
<div class="right-side"> <div class="right-side">
<span class="selector-current" aria-hidden="true"> <span class="selector-current" aria-hidden="true">
{selectedTitle.split("(", 2)[0]} {selectedTitle?.split("(", 2)[0]}
</span> </span>
<IconSelector /> <IconSelector />
</div> </div>