fix: 🐛 Minor issues measurement panel related to description (#1142)

This commit is contained in:
ladeirarodolfo authored and Danny Brown committed 2019-11-03 22:53:24 -05:00
1 parent 54e07c281f
commit 681384b742
5 files changed
+17 -4

No files matched your search

@@ -31,7 +31,7 @@ function getAllTools() {
function getMeasurementText(measurementData = {}) {
const defaultText = '...';
const { location = '', description = '' } = measurementData;
const result = location + (description ? `(${description})` : '');
const result = location + (description ? ` (${description})` : '');
return result || defaultText;
}
@@ -105,9 +105,9 @@ function getToolLabellingFlowCallback(store) {
if (location) {
measurementData.location = location;
}
if (description) {
measurementData.description = description;
}
measurementData.description = description || '';
if (response) {
measurementData.response = response;
}