Skip to content

Commit

Permalink
[Bug]: 自定义内核对象后,进入“设计字段布局”后,页面莫名其妙多了switch和advanced两个分组 #6748
Browse files Browse the repository at this point in the history
  • Loading branch information
tujiajun committed Apr 28, 2024
1 parent 6f3e6f0 commit 02e9a25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/standard-object-database/package.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ module.exports = {
const dbRecord = await object.directFind({filters: ['_id','=',id]});
if(dbRecord.length === 0){
// const newId = await object._makeNewID();
const objectConfig = await object.toConfig();
let field_groups = objectConfig.field_groups || null;
const curentObject = await this.getObject(name);
const curentObjectConfig = await curentObject.toConfig();
let field_groups = curentObjectConfig.field_groups || null;

const now = new Date();
await object.directInsert(Object.assign({}, data, {
Expand Down

0 comments on commit 02e9a25

Please sign in to comment.