diff --git a/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue b/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue index 50662ad9b..32d703a1e 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue @@ -112,20 +112,19 @@ export default { return `${this.browser.browser_name || ''} ${this.browser .browser_version || ''}`; }, + contactAdditionalAttributes() { + return this.contact.additional_attributes || {}; + }, ipAddress() { - const { - additional_attributes: { created_at_ip: createdAtIp }, - } = this.contact; + const { created_at_ip: createdAtIp } = this.contactAdditionalAttributes; return createdAtIp; }, location() { const { - additional_attributes: { - country = '', - city = '', - country_code: countryCode, - }, - } = this.contact; + country = '', + city = '', + country_code: countryCode, + } = this.contactAdditionalAttributes; const cityAndCountry = [city, country].filter(item => !!item).join(', '); if (!cityAndCountry) { diff --git a/config/app.yml b/config/app.yml index c360ac4dd..6c7b90b33 100644 --- a/config/app.yml +++ b/config/app.yml @@ -1,5 +1,5 @@ shared: &shared - version: '1.11.0' + version: '1.11.1' development: <<: *shared diff --git a/package.json b/package.json index 85a9b5bf8..a0111c6b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@chatwoot/chatwoot", - "version": "1.11.0", + "version": "1.11.1", "license": "MIT", "scripts": { "eslint": "eslint app/javascript --fix",