Commit 68e28fea authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复 没有渠道数据 一直loading的问题

parent d24a8fcd
......@@ -118,10 +118,12 @@ const MemberForm: React.FC<MemberFormProps> = ({
if (channelRes.code !== 1000) {
return;
}
const {
channelTypes = [],
upperMembers = [],
let {
channelTypes,
upperMembers,
} = channelRes.data;
channelTypes = channelTypes || [];
upperMembers = upperMembers || [];
const channelType = channelTypes.map(item => ({ label: item.channelTypeName, value: item.channelTypeId }));
......
......@@ -174,7 +174,7 @@ export function createMemberSchema(elements: ElementType[]) {
return components;
}
for (let item of elements) {
components[item.fieldName] = getFieldType(item);
components[item.fieldName as string] = getFieldType(item);
}
return components;
};
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment