@lighthouse/common
Advanced tools
Comparing version 4.25.1-canary.114.1467 to 4.25.1-canary.114.1470
@@ -324,7 +324,10 @@ "use strict"; | ||
if (isReferenceField) { | ||
const parsedValue = (0, _.parseValue)(value.label); | ||
const parsedValue = (0, _.parseValue)(value); | ||
console.log({ | ||
parsedValue | ||
}); | ||
const displayValue = (0, _lodash.isArray)(parsedValue) ? { | ||
text: (0, _lodash.join)(parsedValue, ', ') | ||
text: value.map(val => val.label).join(', ') | ||
} : { | ||
text: parsedValue | ||
text: parsedValue.label | ||
}; | ||
@@ -331,0 +334,0 @@ return [labelText, displayValue]; |
@@ -328,8 +328,14 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
if (isReferenceField) { | ||
var _parsedValue = parseValue(value.label); | ||
var _parsedValue = parseValue(value); | ||
console.log({ | ||
parsedValue: _parsedValue | ||
}); | ||
var _displayValue3 = isArray(_parsedValue) ? { | ||
text: join(_parsedValue, ', ') | ||
text: value.map(function (val) { | ||
return val.label; | ||
}).join(', ') | ||
} : { | ||
text: _parsedValue | ||
text: _parsedValue.label | ||
}; | ||
@@ -336,0 +342,0 @@ |
{ | ||
"name": "@lighthouse/common", | ||
"version": "4.25.1-canary.114.1467", | ||
"version": "4.25.1-canary.114.1470", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1240888
11951