diff --git a/src/scenes/ProgressReports/EditForm/Steps/Media/MediaStep.graphql b/src/scenes/ProgressReports/EditForm/Steps/Media/MediaStep.graphql index 97175f1fa7..488f951260 100644 --- a/src/scenes/ProgressReports/EditForm/Steps/Media/MediaStep.graphql +++ b/src/scenes/ProgressReports/EditForm/Steps/Media/MediaStep.graphql @@ -5,9 +5,7 @@ mutation CreateMedia($input: UploadProgressReportMedia!) { items { id variant { - key - label - responsibleRole + ...variant } category } diff --git a/src/scenes/ProgressReports/EditForm/Steps/Media/MediaStep.tsx b/src/scenes/ProgressReports/EditForm/Steps/Media/MediaStep.tsx index 65e850ddbc..240782db57 100644 --- a/src/scenes/ProgressReports/EditForm/Steps/Media/MediaStep.tsx +++ b/src/scenes/ProgressReports/EditForm/Steps/Media/MediaStep.tsx @@ -66,20 +66,18 @@ export const MediaStep: StepComponent = ({ report }) => { {...getInputProps()} name={`upload-media-${variant.key}`} /> - - item.variant.key === variant.key - ), - uploadVariant: variant, - }} - sensitivity={report.parent.sensitivity} - initiallyOpen={false} - /> - + item.variant.key === variant.key + ), + uploadVariant: variant, + }} + sensitivity={report.parent.sensitivity} + initiallyOpen={false} + /> ); })} diff --git a/src/scenes/ProgressReports/EditForm/Steps/Media/VariantMediaAccordion.tsx b/src/scenes/ProgressReports/EditForm/Steps/Media/VariantMediaAccordion.tsx index a7a5dc8a04..20dcb8bb73 100644 --- a/src/scenes/ProgressReports/EditForm/Steps/Media/VariantMediaAccordion.tsx +++ b/src/scenes/ProgressReports/EditForm/Steps/Media/VariantMediaAccordion.tsx @@ -265,23 +265,21 @@ export const VariantMediaAccordion = ({ {response.uploadVariant.label} - - - - - + + + );