king
2020-04-02 5b94d171aea661d000509a32448921363c77af9b
src/templates/zshare/dragelement/index.jsx
@@ -11,7 +11,7 @@
const Container = ({list, setting, gridBtn, type, placeholder, handleList, handleMenu, deleteMenu, copyElement, profileMenu, handleGridBtn, showfield, doubleClickCard }) => {
  let target = null
  const [cards, setCards] = useState(list)
  const moveCard = (id, atIndex) => {
    const { card, index } = findCard(id)
@@ -186,13 +186,13 @@
    let _hideCol = []
    cards.forEach(col => {
      if (col.type === 'colspan' && col.sublist) {
        _hideCol = _hideCol.concat(col.sublist)
        _hideCol.push(...col.sublist)
      }
    })
    cards.forEach(col => {
      if (!_hideCol.includes(col.uuid)) {
        _colCards.push(col)
      }
      if (_hideCol.includes(col.uuid)) return
      _colCards.push(col)
    })
  }
@@ -280,10 +280,10 @@
          </div>
        ))
      }
      {cards.length === 0 &&
      {cards.length === 0 ?
        <div className="common-drawarea-placeholder">
          {placeholder}
        </div>
        </div> : null
      }
    </div>
  )