Improving "Add/Edit Description" workflow
This commit is contained in:
1 parent
d486ebd551
commit
3bd44fd7bc
12 files changed
+69
-19
No files matched your search
+5
@@ -36,6 +36,11 @@ export default function ({ instance, eventData, tool }) {
|
||||
measurement.location = relatedTimepoint.location;
|
||||
}
|
||||
|
||||
// Use the related timepoint description if found and defined
|
||||
if (relatedTimepoint && relatedTimepoint.description) {
|
||||
measurement.description = relatedTimepoint.description;
|
||||
}
|
||||
|
||||
// Clean the measurement according to the Schema
|
||||
Collection._c2._simpleSchema.clean(measurement);
|
||||
|
||||
|
||||
Reference in new issue
Block a user