king
2019-12-13 a70940450c021a47e69abdf8fa8f7f98594601cc
src/templates/modalconfig/dragelement/index.jsx
@@ -26,7 +26,7 @@
  }
  const findCard = id => {
    const card = cards.filter(c => `${c.id}` === id)[0]
    const card = cards.filter(c => `${c.uuid}` === id)[0]
    return {
      card,
      index: cards.indexOf(card),
@@ -79,11 +79,9 @@
      newcard.readonly = 'false'
      newcard.required = 'false'
      newcard.id = Utils.getuuid()
      let targetId = cards.length > 0 ? cards[cards.length - 1].id : 0
      let targetId = cards.length > 0 ? cards[cards.length - 1].uuid : 0
      if (target) {
        targetId = target.id
        targetId = target.uuid
      }
      const { index: overIndex } = findCard(`${targetId}`)
@@ -115,8 +113,7 @@
      {cards.map(card => (
        <Col key={card.uuid} span={_cols}>
          <Card
            key={card.uuid}
            id={`${card.id}`}
            id={`${card.uuid}`}
            card={card}
            moveCard={moveCard}
            editCard={editCard}