Skip to main content
edited
Source Link
Amal Hashim
  • 28.4k
  • 5
  • 32
  • 61

Try

function CBody(ctx) {
    if(ctx.CurrentItem.hasOwnProperty("Author0") && ctx.CurrentItem.Author0 != undefined) {
        var ret = "<span >" + ctx.CurrentItem.Author0 + " </span>" 
        return ret;
    }
    return "";
} 

Try

function CBody(ctx) {
    if(ctx.CurrentItem.hasOwnProperty("Author0")) {
        var ret = "<span >" + ctx.CurrentItem.Author0 + " </span>" 
        return ret;
    }
    return "";
} 

Try

function CBody(ctx) {
    if(ctx.CurrentItem.hasOwnProperty("Author0") && ctx.CurrentItem.Author0 != undefined) {
        var ret = "<span >" + ctx.CurrentItem.Author0 + " </span>" 
        return ret;
    }
    return "";
} 
Source Link
Amal Hashim
  • 28.4k
  • 5
  • 32
  • 61

Try

function CBody(ctx) {
    if(ctx.CurrentItem.hasOwnProperty("Author0")) {
        var ret = "<span >" + ctx.CurrentItem.Author0 + " </span>" 
        return ret;
    }
    return "";
}