@@ -259,7 +259,6 @@ export function Component() {
259259 // is_assessment_report,
260260 ...otherValues
261261 } = removeNull ( response ) ;
262-
263262 setValue ( {
264263 ...otherValues ,
265264 planned_interventions : planned_interventions ?. map (
@@ -621,21 +620,32 @@ export function Component() {
621620 className = { styles . drefOperationalUpdateForm }
622621 title = { strings . formPageTitle }
623622 heading = { strings . formPageHeading }
624- actions = { isTruthyString ( opsUpdateId ) && (
623+ actions = { (
625624 < >
625+ { isTruthyString ( opsUpdateId ) && (
626+ < >
627+ < Button
628+ name = { undefined }
629+ onClick = { handleShareClick }
630+ disabled = { isNotDefined ( drefId ) }
631+ >
632+ { strings . formShareButtonLabel }
633+ </ Button >
634+ < Button
635+ name = { undefined }
636+ onClick = { handleExportClick }
637+ icons = { < DownloadTwoLineIcon /> }
638+ >
639+ { strings . formExportLabel }
640+ </ Button >
641+ </ >
642+ ) }
626643 < Button
627644 name = { undefined }
628- onClick = { handleShareClick }
629- disabled = { isNotDefined ( drefId ) }
630- >
631- { strings . formShareButtonLabel }
632- </ Button >
633- < Button
634- name = { undefined }
635- onClick = { handleExportClick }
636- icons = { < DownloadTwoLineIcon /> }
645+ onClick = { handleFormSubmit }
646+ disabled = { disabled }
637647 >
638- { strings . formExportLabel }
648+ { strings . formSaveButtonLabel }
639649 </ Button >
640650 </ >
641651 ) }
@@ -809,13 +819,6 @@ export function Component() {
809819 { strings . formContinueButtonLabel }
810820 </ Button >
811821 </ div >
812- < Button
813- name = { undefined }
814- onClick = { handleFormSubmit }
815- disabled = { activeTab !== 'submission' || disabled }
816- >
817- { strings . formSubmitButtonLabel }
818- </ Button >
819822 </ div >
820823 </ >
821824 ) }
0 commit comments