1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-27 11:01:14 +00:00

Update single-selector.js (#7707)

This commit is contained in:
Ranjiwei 2025-04-08 11:20:42 +08:00 committed by GitHub
parent 0666b7a303
commit baddc4bad7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ class Selector extends Component {
<div onClick={this.onToggleClick}>
{customSelectorToggle ? customSelectorToggle : (
<span className="cur-option">
{currentSelectedOption.text}
{currentSelectedOption ? currentSelectedOption.text : ''}
{isDropdownToggleShown && <i className="sf3-font sf3-font-down ml-1 toggle-icon"></i>}
</span>
)}