gd-sprest-bs 10.8.7 → 10.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,8 +59,8 @@ var renderDisplay = function (fieldName, props) {
59
59
  var control = null;
60
60
  var field = props.info.fields[fieldName];
61
61
  var isRichText = field ? field.RichText : false;
62
- var value = props.info.fieldValuesAsText[fieldName] || "";
63
- var html = props.info.fieldValuesAsHtml[fieldName] || props.info.fieldValuesAsHtml[fieldName.replace(/\_/g, "_x005f_")] || "";
62
+ var value = props.info.fieldValuesAsText ? props.info.fieldValuesAsText[fieldName] || "" : "";
63
+ var html = props.info.fieldValuesAsHtml ? props.info.fieldValuesAsHtml[fieldName] || props.info.fieldValuesAsHtml[fieldName.replace(/\_/g, "_x005f_")] || "" : "";
64
64
  // Ensure the field exists
65
65
  if (field == null) {
66
66
  // See if a value was found