fix: 对象设计器存储相关字段异常.

This commit is contained in:
baozhoutao 2024-10-21 13:43:22 +08:00
parent 91da76433b
commit 80be0ee050
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
"author": "steedos",
"license": "MIT",
"dependencies": {
"@steedos-builder/amis-editor": "6.3.0-beta.12",
"@steedos-builder/amis-editor": "6.3.0-beta.13",
"@steedos/ee_sso-oidc": "2.7.10-beta.11",
"@steedos/service-analytics": "2.7.10-beta.11",
"@steedos/service-ancillary": "2.7.10-beta.11",

View File

@ -345,7 +345,7 @@ module.exports = {
visible_on: group.visible_on,
body: _.map(items, (field)=>{
return {
type: `sfield-${field.type}`,
type: `sfield-${_.camelCase(field.type).toLowerCase()}`,
config: Object.assign({amis: {name: field.name}}, field)
}
})
@ -505,8 +505,8 @@ module.exports = {
}
// 循环需要删除的字段
for (const fieldName of deleteFields) {
const field = _.find(dbFields, { name: fieldName })._id;
try {
const field = _.find(dbFields, { name: fieldName });
try {
const id = field._id;
await object_fields.directDelete(id);
log.delete.success.push(fieldName);

BIN
yarn.lock

Binary file not shown.