From 4ca426f6e25fd253fa454e890f0a70ce1855b46c Mon Sep 17 00:00:00 2001 From: milanmajchrak Date: Thu, 5 Dec 2024 09:35:43 +0100 Subject: [PATCH] Updated the handleFormSave method name to `dispatchFormSaveAndReinitialize` --- .../submission/sections/form/section-form.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/submission/sections/form/section-form.component.ts b/src/app/submission/sections/form/section-form.component.ts index 19198a3fb0c..3b4af9f5ade 100644 --- a/src/app/submission/sections/form/section-form.component.ts +++ b/src/app/submission/sections/form/section-form.component.ts @@ -436,22 +436,22 @@ export class SubmissionSectionFormComponent extends SectionModelComponent { // The values in the `typeFields` are in the format `dc_type` or `edm_type`, so we need to replace `_` with `.` [...this.typeFields.values()].some(typeValue => { if (typeValue.replace('_', '.') === metadata) { - this.handleFormSave(typeValue, value); + this.dispatchFormSaveAndReinitialize(typeValue, value); return true; } }); if ([SPONSOR_METADATA_NAME, AUTHOR_METADATA_FIELD_NAME].includes(metadata)) { - this.handleFormSave(metadata, value); + this.dispatchFormSaveAndReinitialize(metadata, value); } } /** - * Handle form save and reinitialization + * Dispatch form save and reinitialize form * @param metadata * @param value */ - handleFormSave(metadata, value) { + dispatchFormSaveAndReinitialize(metadata, value) { this.submissionService.dispatchSaveSection(this.submissionId, this.sectionData.id); this.reinitializeForm(metadata, value); }