fix: drag fields from one section to another

This commit is contained in:
Shariq Ansari 2024-06-19 11:30:41 +05:30
parent 1c562d2d1c
commit 42153e740e
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@
<div v-show="section.opened" class="p-4 pt-0 pb-2">
<Draggable
:list="section.fields"
group="fields"
item-key="label"
class="flex flex-col gap-1"
handle=".cursor-grab"

View File

@ -583,7 +583,7 @@ const deal_contacts = createResource({
cache: ['deal_contacts', props.dealId],
auto: true,
onSuccess: (data) => {
let contactSection = fieldsLayout.data.find(
let contactSection = fieldsLayout.data?.find(
(section) => section.name == 'contacts_section',
)
if (!contactSection) return