wwf
2 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx
@@ -84,15 +84,15 @@
  const getUniqVarName = (varName: string) => {
    if (varList.find(v => v.variable === varName)) {
      const match = varName.match(/_(\d+)$/)
      const match = varName.match(/_([0-9]+)$/)
      const index = (() => {
        if (match)
          return Number.parseInt(match[1]!) + 1
          return parseInt(match[1]!) + 1
        return 1
      })()
      return getUniqVarName(`${varName.replace(/_(\d+)$/, '')}_${index}`)
      return getUniqVarName(`${varName.replace(/_([0-9]+)$/, '')}_${index}`)
    }
    return varName
  }
@@ -148,7 +148,7 @@
      {isShowVarPicker && (
        <div
          ref={popupRef}
          className='w-[228px] space-y-1 rounded-lg border border-gray-200 bg-white p-1 shadow-lg'
          className='w-[228px] p-1 bg-white rounded-lg border border-gray-200 shadow-lg space-y-1'
          style={{
            position: 'fixed',
            top: popupPosition.y,