mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
face_cluster (#6470)
* face_cluster * update * update * feat: update ui * feat: optimize code * feat: update code * feat: optimize ui * feat: optimize view name --------- Co-authored-by: zheng.shen <zheng.shen@seafile.com> Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -52,9 +52,9 @@ class ItemDropdownMenu extends React.Component {
|
||||
|
||||
UNSAFE_componentWillReceiveProps(nextProps) { // for toolbar item operation
|
||||
let { item } = nextProps;
|
||||
if (item.name !== this.props.item.name) {
|
||||
let menuList = this.props.getMenuList(item);
|
||||
this.setState({ menuList: menuList });
|
||||
const nextMenuList = nextProps.getMenuList(item);
|
||||
if (item.name !== this.props.item.name || this.state.menuList !== nextMenuList) {
|
||||
this.setState({ menuList: nextMenuList });
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user