Skip to content

Commit

Permalink
fix: cannot add email & mobile no in contact
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Jan 22, 2025
1 parent baa1770 commit 9c59e4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 4 additions & 1 deletion frontend/src/components/SidePanelLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@
:label="data[field.fieldname]"
class="dropdown-button flex w-full items-center justify-between rounded border border-gray-100 bg-surface-gray-2 px-2 py-1.5 text-base text-ink-gray-8 placeholder-ink-gray-4 transition-colors hover:border-outline-gray-modals hover:bg-surface-gray-3 focus:border-outline-gray-4 focus:bg-surface-white focus:shadow-sm focus:outline-none focus:ring-0 focus-visible:ring-2 focus-visible:ring-outline-gray-3"
>
<div v-if="data[field.fieldname]" class="truncate">
<div
v-if="data[field.fieldname]"
class="truncate"
>
{{ data[field.fieldname] }}
</div>
<div
Expand Down
6 changes: 2 additions & 4 deletions frontend/src/pages/Contact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,7 @@ const _address = ref({})
const contact = createResource({
url: 'crm.api.contact.get_contact',
cache: ['contact', props.contactId],
params: {
name: props.contactId,
},
params: { name: props.contactId },
auto: true,
transform: (data) => {
return {
Expand Down Expand Up @@ -340,7 +338,7 @@ const sections = createResource({
cache: ['sidePanelSections', 'Contact'],
params: { doctype: 'Contact' },
auto: true,
transform: (data) => getParsedSections(data),
transform: (data) => computed(() => getParsedSections(data)),
})
function getParsedSections(_sections) {
Expand Down
6 changes: 2 additions & 4 deletions frontend/src/pages/MobileContact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,7 @@ const tabs = [
const deals = createResource({
url: 'crm.api.contact.get_linked_deals',
cache: ['deals', props.contactId],
params: {
contact: props.contactId,
},
params: { contact: props.contactId },
auto: true,
})
Expand All @@ -337,7 +335,7 @@ const sections = createResource({
cache: ['sidePanelSections', 'Contact'],
params: { doctype: 'Contact' },
auto: true,
transform: (data) => getParsedSections(data),
transform: (data) => computed(() => getParsedSections(data)),
})
function getParsedSections(_sections) {
Expand Down

0 comments on commit 9c59e4d

Please sign in to comment.