Skip to content

Commit

Permalink
Fix import for field collections (#807)
Browse files Browse the repository at this point in the history
* Fix import for field collections

* Apply eslint-fixer changes

* Automatic frontend build

---------

Co-authored-by: vin0401 <[email protected]>
  • Loading branch information
vin0401 and vin0401 authored Dec 9, 2024
1 parent 2409fd4 commit 83f74ec
Show file tree
Hide file tree
Showing 31 changed files with 1,963 additions and 1,963 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
import React from 'react'
import { FormListProvider } from '@Pimcore/modules/data-object/editor/types/object/tab-manager/tabs/edit/providers/form-list-provider/form-list-provider'
import { type FormListFieldData, type FormListOperation } from 'antd'
import useFormInstance from 'antd/es/form/hooks/useFormInstance'
import { type FieldCollectionProps } from './field-collection'
import { useFieldCollection } from './providers/use-field-collection'
import { Content } from '@Pimcore/components/content/content'
import { ObjectComponent } from '@Pimcore/modules/data-object/editor/types/object/tab-manager/tabs/edit/components/object-component'
import { ToolStripBox } from '@Pimcore/components/toolstrip/box/tool-strip-box'
import { FieldCollectionToolStrip } from './field-collection-tool-strip'
import { Form } from '@Pimcore/components/form/form'

export interface FieldCollectionItemProps extends FieldCollectionProps {
field: FormListFieldData
operation: FormListOperation
}

export const FieldCollectionItem = ({ field, operation, name, border, ...props }: FieldCollectionItemProps): React.JSX.Element => {
const form = useFormInstance()
const form = Form.useFormInstance()
const fieldCollection = useFieldCollection()
const value = form.getFieldValue([name, field.name])

Expand Down

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/build/16169e80-948a-440e-b964-f7e513a8b068/core-dll.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions public/build/16169e80-948a-440e-b964-f7e513a8b068/entrypoints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"entrypoints": {
"core-dll": {
"css": [
"/bundles/pimcorestudioui/build/16169e80-948a-440e-b964-f7e513a8b068/core-dll.css"
],
"js": [
"/bundles/pimcorestudioui/build/16169e80-948a-440e-b964-f7e513a8b068/core-dll.js"
]
}
}
}

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entrypoints": {
"main": {
"js": [
"/bundles/pimcorestudioui/build/30aad8e7-67ca-4d70-b36a-f2df8eb04478/main.js"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"bundles/pimcorestudioui/build/30aad8e7-67ca-4d70-b36a-f2df8eb04478/main.js": "/bundles/pimcorestudioui/build/30aad8e7-67ca-4d70-b36a-f2df8eb04478/main.js"
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entrypoints": {
"vendor": {
"js": [
"/bundles/pimcorestudioui/build/6196b2c2-6dcd-436a-aa75-45b312990b84/vendor.js"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"bundles/pimcorestudioui/build/6196b2c2-6dcd-436a-aa75-45b312990b84/vendor.js": "/bundles/pimcorestudioui/build/6196b2c2-6dcd-436a-aa75-45b312990b84/vendor.js"
}
2 changes: 0 additions & 2 deletions public/build/d761b1a3-e830-44dc-9ba0-74b61fa950df/core-dll.js

This file was deleted.

12 changes: 0 additions & 12 deletions public/build/d761b1a3-e830-44dc-9ba0-74b61fa950df/entrypoints.json

This file was deleted.

0 comments on commit 83f74ec

Please sign in to comment.