|
|
@ -48,12 +48,11 @@ export function getContentValue(content: ContentDto, language: LanguageDto, fiel |
|
|
const actualReference = getValue(content.referenceData, language, field, true); |
|
|
const actualReference = getValue(content.referenceData, language, field, true); |
|
|
const actualValue = getValue(content.data, language, field); |
|
|
const actualValue = getValue(content.data, language, field); |
|
|
|
|
|
|
|
|
if (!actualReference && !actualValue) { |
|
|
if (Types.isUndefined(actualReference) && Types.isUndefined(actualValue)) { |
|
|
return { value: actualValue, formatted: '' }; |
|
|
return { value: actualValue, formatted: '' }; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const formatted = FieldFormatter.format(field, actualValue, actualReference, allowHtml); |
|
|
const formatted = FieldFormatter.format(field, actualValue, actualReference, allowHtml); |
|
|
|
|
|
|
|
|
return { value: actualValue, formatted }; |
|
|
return { value: actualValue, formatted }; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|