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">
|
<div v-show="section.opened" class="p-4 pt-0 pb-2">
|
||||||
<Draggable
|
<Draggable
|
||||||
:list="section.fields"
|
:list="section.fields"
|
||||||
|
group="fields"
|
||||||
item-key="label"
|
item-key="label"
|
||||||
class="flex flex-col gap-1"
|
class="flex flex-col gap-1"
|
||||||
handle=".cursor-grab"
|
handle=".cursor-grab"
|
||||||
|
|||||||
@ -583,7 +583,7 @@ const deal_contacts = createResource({
|
|||||||
cache: ['deal_contacts', props.dealId],
|
cache: ['deal_contacts', props.dealId],
|
||||||
auto: true,
|
auto: true,
|
||||||
onSuccess: (data) => {
|
onSuccess: (data) => {
|
||||||
let contactSection = fieldsLayout.data.find(
|
let contactSection = fieldsLayout.data?.find(
|
||||||
(section) => section.name == 'contacts_section',
|
(section) => section.name == 'contacts_section',
|
||||||
)
|
)
|
||||||
if (!contactSection) return
|
if (!contactSection) return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user