We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b1f541 + 3d552d2 commit 6650cabCopy full SHA for 6650cab
1 file changed
src/api/dataset/content-types/dataset/lifecycles.js
@@ -10,7 +10,7 @@ module.exports = {
10
});
11
12
event.params.data.uid = uid;
13
- event.params.data.dataset_id = data.study?.connect?.[0] || null + ':' + uid;
+ event.params.data.dataset_id = (data.study?.connect?.[0]?.id || null) + ':' + uid;
14
},
15
async beforeUpdate(event) {
16
const { data, where } = event.params;
0 commit comments