shouldComponentUpdate(nextProps) { let { responseCookies: currResponseCookies = { cookies: [] } } = this.props.item; let { responseCookies: nextResponseCookies = { cookies: [] } } = nextProps.item; currResponseCookies = currResponseCookies.cookies || currResponseCookies; nextResponseCookies = nextResponseCookies.cookies || nextResponseCookies; return currResponseCookies !== nextResponseCookies; } render() { let { responseCookies = { cookies: [] } } = this.props.item; responseCookies = responseCookies.cookies || responseCookies; const responseCookiesLength = responseCookies.length ? responseCookies.length : ""; return dom.td( { className: "requests-list-column requests-list-number-column requests-list-set-cookies", title: responseCookiesLength, }, responseCookiesLength ); } } module.exports = RequestListColumnSetCookies; PK