king
2023-05-18 e9e8b1c7b481415714fff9a0d83099fd5a7d6ff0
src/menu/components/card/cardcellcomponent/index.jsx
@@ -75,7 +75,7 @@
  }
  UNSAFE_componentWillReceiveProps(nextProps) {
    if (this.props.side !== nextProps.side) {
    if (this.props.side !== nextProps.side && nextProps.side) {
      this.setState({
        elements: fromJS(nextProps.elements).toJS()
      })
@@ -624,10 +624,9 @@
  }
  dropButton = (id) => {
    const { cards, cardCell } = this.props
    const { cards } = this.props
    if (!cards.action) return
    if (cardCell.type === 'custom') return
    let index = cards.action.findIndex(item => item.uuid === id)
@@ -751,7 +750,7 @@
    const { elements, visible, actvisible, profVisible, card, record } = this.state
    return (
      <div className={'model-menu-card-cell-list ' + (cardCell && cardCell.setting.layout === 'flex' ? 'mk-flex' : '') }>
      <div className={'model-menu-card-cell-list ' + (cardCell && cardCell.setting && cardCell.setting.layout === 'flex' ? 'mk-flex' : '') }>
        <DragElement
          list={elements}
          parent={cardCell}