@@ -230,7 +230,7 @@ const Group = {};
230
230
Group . create = async function ( account , model , branch = "master" , rid = null , sessionId , creator = "" , data ) {
231
231
const newGroup = { } ;
232
232
233
- const convertedObjects = await getObjectsArrayAsExternalIds ( account , model , branch , rid , data , false ) ;
233
+ const convertedObjects = data . objects ? await getObjectsArrayAsExternalIds ( account , model , branch , rid , data , false ) : undefined ;
234
234
235
235
let typeCorrect = ( ! data . objects !== ! data . rules ) ;
236
236
@@ -302,7 +302,7 @@ Group.findByUID = async function (account, model, branch, revId, uid, showIfcGui
302
302
}
303
303
304
304
if ( convertToIfcGuids ) {
305
- foundGroup . objects = await getObjectsArrayAsExternalIds ( account , mode , branch , revId , foundGroup ) ;
305
+ foundGroup . objects = await getObjectsArrayAsExternalIds ( account , model , branch , revId , foundGroup ) ;
306
306
} else {
307
307
try {
308
308
foundGroup . objects = await getObjectIds ( account , model , branch , revId , foundGroup , showIfcGuids ) ;
@@ -373,7 +373,7 @@ Group.getList = async function (account, model, branch, revId, ids, queryParams,
373
373
Group . update = async function ( account , model , branch = "master" , revId = null , sessionId , user = "" , groupId , data ) {
374
374
const group = await Group . findByUID ( account , model , branch , revId , groupId ) ;
375
375
376
- const convertedObjects = await getObjectsArrayAsExternalIds ( account , model , branch , revId , data , false ) ;
376
+ const convertedObjects = data . objects ? await getObjectsArrayAsExternalIds ( account , model , branch , revId , data , false ) : undefined ;
377
377
const toUpdate = { } ;
378
378
const toUnset = { } ;
379
379
0 commit comments