Commit 498d0b3d authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: pass dto to source section

parent 927ac48a
......@@ -332,7 +332,7 @@ function CreateActorForm(props: CreateActorFormProps) {
}
>
<ExternalIdServiceSelect
name={`${name}.serviceIdentifier`}
name={`${name}.serviceIdentifier.code`}
label="ID Service"
/>
<FormTextField
......
......@@ -154,7 +154,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
<ActorsFormSection initialValues={props.item} />
<PropertiesFormSection initialValues={props.item} />
<RelatedItemsFormSection initialValues={props.item} />
<SourceFormSection />
<SourceFormSection initialValues={props.item} />
<div className="flex items-center justify-end space-x-6">
<Button onPress={onCancel} variant="link">
Cancel
......
......@@ -154,7 +154,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
<ActorsFormSection initialValues={props.item} />
<PropertiesFormSection initialValues={props.item} />
<RelatedItemsFormSection initialValues={props.item} />
<SourceFormSection />
<SourceFormSection initialValues={props.item} />
<div className="flex items-center justify-end space-x-6">
<Button onPress={onCancel} variant="link">
Cancel
......
......@@ -150,7 +150,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
<ActorsFormSection initialValues={props.item} />
<PropertiesFormSection initialValues={props.item} />
<RelatedItemsFormSection initialValues={props.item} />
<SourceFormSection />
<SourceFormSection initialValues={props.item} />
<div className="flex items-center justify-end space-x-6">
<Button onPress={onCancel} variant="link">
Cancel
......
......@@ -150,7 +150,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
<ActorsFormSection initialValues={props.item} />
<PropertiesFormSection initialValues={props.item} />
<RelatedItemsFormSection initialValues={props.item} />
<SourceFormSection />
<SourceFormSection initialValues={props.item} />
<div className="flex items-center justify-end space-x-6">
<Button onPress={onCancel} variant="link">
Cancel
......
......@@ -537,7 +537,7 @@ function WorkflowPage(props: FormPageProps) {
<ActorsFormSection initialValues={props.item} />
<PropertiesFormSection initialValues={props.item} />
<RelatedItemsFormSection initialValues={props.item} />
<SourceFormSection />
<SourceFormSection initialValues={props.item} />
</Fragment>
)
}
......
......@@ -9,12 +9,6 @@ import { Svg as TriangleIcon } from '@/elements/icons/small/triangle.svg'
import { FormField } from '@/modules/form/FormField'
import { FormFieldArray } from '@/modules/form/FormFieldArray'
import { ActorsFormSection } from '../ActorsFormSection/ActorsFormSection'
import { MainFormSection } from '../MainFormSection/MainFormSection'
import { PropertiesFormSection } from '../PropertiesFormSection/PropertiesFormSection'
import { RelatedItemsFormSection } from '../RelatedItemsFormSection/RelatedItemsFormSection'
import { SourceFormSection } from '../SourceFormSection/SourceFormSection'
export interface ItemFormValues extends WorkflowCore {
draft?: boolean
composedOf?: Array<StepCore & { persistentId?: string }>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment