fix: 🐛 Desc of meas.table not being updated on properly (#1094)
Is not possible to add Measurement Description if Relabel was not previously selected BREAKING CHANGE: 1013 Closes: #1013
This commit is contained in:
parent
f5560c11b0
commit
85f836cd91
@ -28,16 +28,12 @@ function getAllTools() {
|
||||
return tools;
|
||||
}
|
||||
|
||||
function getMeasurementText(measurementData) {
|
||||
const { location, description } = measurementData;
|
||||
let text = '...';
|
||||
if (location) {
|
||||
text = location;
|
||||
if (description) {
|
||||
text += `(${description})`;
|
||||
}
|
||||
}
|
||||
return text;
|
||||
function getMeasurementText(measurementData = {}) {
|
||||
const defaultText = '...';
|
||||
const { location = '', description = '' } = measurementData;
|
||||
const result = location + (description ? `(${description})` : '');
|
||||
|
||||
return result || defaultText;
|
||||
}
|
||||
|
||||
function getDataForEachMeasurementNumber(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user