mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 09:21:13 +08:00
fix: amis-saas-7691 测试:【组件优化第五批】穿梭器左侧展示面板-展示方式为表格形式,添加表格列报错;
Change-Id: I89715586facc71b579101d649f08cdc17d8c4a33
This commit is contained in:
parent
4c93c869b6
commit
f7251f1f30
@ -448,7 +448,7 @@ export default class TransferTableOption extends React.Component<
|
||||
data[type] = value;
|
||||
if (type === 'columns') {
|
||||
const keys = value.map(item => item.name);
|
||||
data.options = data.options.map((item: Option) => {
|
||||
data.options = (data.options ?? []).map((item: Option) => {
|
||||
return {
|
||||
...keys.reduce(
|
||||
(pv, cv) => {
|
||||
|
Loading…
Reference in New Issue
Block a user