feat: Show custom attributes in pre-chat form on new conversation (#6735)
This commit is contained in:
@@ -74,10 +74,6 @@ export default {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
},
|
||||
disableContactFields: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -114,7 +110,7 @@ export default {
|
||||
return this.options.preChatMessage;
|
||||
},
|
||||
preChatFields() {
|
||||
return this.disableContactFields ? [] : this.options.preChatFields;
|
||||
return this.options?.preChatFields || [];
|
||||
},
|
||||
filteredPreChatFields() {
|
||||
const isUserEmailAvailable = !!this.currentUser.email;
|
||||
|
||||
Reference in New Issue
Block a user