1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 18:03:48 +00:00

fix system-admin user page bug (#6268)

This commit is contained in:
Michael An
2024-06-29 07:41:50 +08:00
committed by GitHub
parent 58512dd17d
commit c8c58b4f6f

View File

@@ -5,7 +5,7 @@ import '../css/single-selector.css';
const propTypes = {
isDropdownToggleShown: PropTypes.bool.isRequired,
currentSelectedOption: PropTypes.object.isRequired,
currentSelectedOption: PropTypes.object,
options: PropTypes.array.isRequired,
selectOption: PropTypes.func.isRequired,
operationBeforeSelect: PropTypes.func,
@@ -67,7 +67,7 @@ class Selector extends Component {
return (
<div className="sf-single-selector position-relative">
<span className="cur-option" onClick={this.onToggleClick}>
{currentSelectedOption.text}
{currentSelectedOption ? currentSelectedOption.text : ''}
{isDropdownToggleShown && <i className="fas fa-caret-down ml-2 toggle-icon"></i>}
</span>
{isPopoverOpen && (