king
2025-04-13 78a727a5acfb9aac5094307f13e8c4dfa1f792cb
src/menu/components/share/pasteforms/index.jsx
@@ -87,6 +87,7 @@
    let forms = fromJS(config.fields).toJS()
    let fields = fromJS(result.fields).toJS()
    let repeats = []
    let lastId = ''
    forms = forms.map(item => {
      if (!item.field) return item
@@ -94,11 +95,16 @@
      let cell = fields.filter(m => m.field && m.field.toLowerCase() === item.field.toLowerCase())[0]
      if (cell) {
        repeats.push(cell.field)
        lastId = cell.uuid
        return cell
      }
      return item
    })
    if (lastId) {
      window.GLOB.formId = lastId
    }
    
    fields = fields.filter(m => !m.field || !repeats.includes(m.field))