From 80be0ee05011d31bbad8daf33c8c0479de58f02b Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Mon, 21 Oct 2024 13:43:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=B9=E8=B1=A1=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E5=99=A8=E5=AD=98=E5=82=A8=E7=9B=B8=E5=85=B3=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=BC=82=E5=B8=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/service-community/package.json | 2 +- .../default/services/object_fields.service.js | 6 +++--- yarn.lock | Bin 871134 -> 871134 bytes 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/service-community/package.json b/services/service-community/package.json index 233fea0bb6..2c45b8092a 100644 --- a/services/service-community/package.json +++ b/services/service-community/package.json @@ -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", diff --git a/services/standard-object-database/main/default/services/object_fields.service.js b/services/standard-object-database/main/default/services/object_fields.service.js index c627378a7d..e632b8b209 100644 --- a/services/standard-object-database/main/default/services/object_fields.service.js +++ b/services/standard-object-database/main/default/services/object_fields.service.js @@ -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); diff --git a/yarn.lock b/yarn.lock index e02e6ec0b145acb78b34ca2c84b946fb896883e0..7c91ac26bfb4f948f632d12b142bd053677616e8 100644 GIT binary patch delta 238 zcmcaN)%4y}(}ottElf+7N*gO#aVaR2r4|)u=I1FWnduqp8R#aZmL%#KP7XBEonF71 ziGBK)rA+#|#(E{`Rmw(b24*Ry#-rF9 Z%m&2lK+FNeoIuP4#N6BWEaOpH0sz)8RW|?t delta 236 zcmcaN)%4y}(}ottElf+7N*XCyaVaR2r4|)u=I1FWnduqp8R#aZmLyJZ)MnG0UbmWw zWBQk+O!_)TdL`*q%9cjvMn*}-#)&D(Cg#S52F6ClW{IYTNrs6@mMO+YNvYZzb8GB{KpqS;hp!%s|Wn#H>Kf Y2E^<@%mKulK+FZi+}rmo<55}y0L{lz%>V!Z