We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f4d832 commit 27032dfCopy full SHA for 27032df
1 file changed
mcc/resources/queries/study/demographics.js
@@ -20,7 +20,7 @@ function onInit(event, helper){
20
}
21
22
function onUpsert(helper, scriptErrors, row, oldRow){
23
- row.objectId = row.objectId || oldRow?.objectId || LABKEY.Utils.generateUUID().toUpperCase()
+ row.objectId = row.objectId || (oldRow ? oldRow.objectId : null) || LABKEY.Utils.generateUUID().toUpperCase()
24
25
if (row.status && row.status.match(/Undetermined/)) {
26
row.status = 'Unknown';
0 commit comments