fix: drag fields from one section to another
This commit is contained in:
parent
1c562d2d1c
commit
42153e740e
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user