king
2020-01-03 862b6cf69dc925a6138a7ebf79b782a5d7791202
src/templates/modalconfig/dragelement/index.jsx
@@ -87,12 +87,12 @@
      const { index: overIndex } = findCard(`${targetId}`)
      let targetIndex = overIndex
      if (!target) {
      // if (!target) {
        targetIndex++
      }
      if (targetIndex < 0) {
        targetIndex = 0
      }
      // }
      // if (targetIndex < 0) {
      //   targetIndex = 0
      // }
      const _cards = update(cards, { $splice: [[targetIndex, 0, newcard]] })
      setCards(_cards)