Merge branch 'release/1.11.1' into master

This commit is contained in:
Sojan
2020-12-16 15:34:10 +05:30
3 changed files with 10 additions and 11 deletions

View File

@@ -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) {

View File

@@ -1,5 +1,5 @@
shared: &shared
version: '1.11.0'
version: '1.11.1'
development:
<<: *shared

View File

@@ -1,6 +1,6 @@
{
"name": "@chatwoot/chatwoot",
"version": "1.11.0",
"version": "1.11.1",
"license": "MIT",
"scripts": {
"eslint": "eslint app/javascript --fix",