fix: amis-saas-7691 测试:【组件优化第五批】穿梭器左侧展示面板-展示方式为表格形式,添加表格列报错;

Change-Id: I89715586facc71b579101d649f08cdc17d8c4a33
This commit is contained in:
zhou999 2022-10-26 13:22:57 +08:00
parent 4c93c869b6
commit f7251f1f30

View File

@ -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) => {