From 753ac5f57b10588e225c1d82203b13a81bc9c9a7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 03 十二月 2020 18:36:26 +0800
Subject: [PATCH] 2020-12-03

---
 src/templates/zshare/modalform/modaleditable/index.jsx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/templates/zshare/modalform/modaleditable/index.jsx b/src/templates/zshare/modalform/modaleditable/index.jsx
index 9b5f7d7..314fe78 100644
--- a/src/templates/zshare/modalform/modaleditable/index.jsx
+++ b/src/templates/zshare/modalform/modaleditable/index.jsx
@@ -339,7 +339,7 @@
     let fields = []
 
     if ((type === 'select' || type === 'radio') && linkSubFields.length > this.state.linkSubFields) {
-      let addcol = linkSubFields[linkSubFields.length - 1]
+      let addcol = linkSubFields.slice(-1)[0]
       dataSource = dataSource.map(data => {
         data[addcol.field] = data.Text
         return data

--
Gitblit v1.8.0