diff --git a/app/javascript/dashboard/helper/preChat.js b/app/javascript/dashboard/helper/preChat.js index bc5502e5b..14d062707 100644 --- a/app/javascript/dashboard/helper/preChat.js +++ b/app/javascript/dashboard/helper/preChat.js @@ -60,15 +60,11 @@ export const getFormattedPreChatFields = ({ preChatFields }) => { return { ...item, label: getLabel({ - key: standardFieldKeys[item.name] - ? standardFieldKeys[item.name].key - : item.name, + key: item.name, label: item.label ? item.label : item.name, }), placeholder: getPlaceHolder({ - key: standardFieldKeys[item.name] - ? standardFieldKeys[item.name].key - : item.name, + key: item.name, placeholder: item.placeholder ? item.placeholder : item.name, }), }; diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/PreChatFields.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/PreChatFields.vue index b1df3902a..dc12be429 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/PreChatFields.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/PreChatFields.vue @@ -43,7 +43,6 @@