diff --git a/src/views/admin/components/edition/metadatum-edition-form.vue b/src/views/admin/components/edition/metadatum-edition-form.vue index bff73327b..7e0f8f7fd 100644 --- a/src/views/admin/components/edition/metadatum-edition-form.vue +++ b/src/views/admin/components/edition/metadatum-edition-form.vue @@ -437,7 +437,6 @@ 'updateMetadatum' ]), saveEdition(metadatum) { - if ( (metadatum.metadata_type_object && metadatum.metadata_type_object.form_component) || metadatum.edit_form == '') { let repository = this.form.repository_level; diff --git a/src/views/admin/components/lists/repository-metadata-list.vue b/src/views/admin/components/lists/repository-metadata-list.vue index a27682f7b..7cb8ef366 100644 --- a/src/views/admin/components/lists/repository-metadata-list.vue +++ b/src/views/admin/components/lists/repository-metadata-list.vue @@ -83,194 +83,195 @@ - -
-
+ - - +
+ +
diff --git a/src/views/admin/components/metadata-types/compound/child-metadata-list.vue b/src/views/admin/components/metadata-types/compound/child-metadata-list.vue index 80536f234..501201ce9 100644 --- a/src/views/admin/components/metadata-types/compound/child-metadata-list.vue +++ b/src/views/admin/components/metadata-types/compound/child-metadata-list.vue @@ -294,7 +294,7 @@ 'updateChildMetadataOrder' ]), handleChange(event) { - if (event.added) { + if (event.added) { this.addNewMetadatum(event.added.element, event.added.newIndex); } else if (event.removed) { this.removeMetadatum(event.removed.element); diff --git a/src/views/admin/js/store/modules/metadata/mutations.js b/src/views/admin/js/store/modules/metadata/mutations.js index 5b6a50356..f48befd6a 100644 --- a/src/views/admin/js/store/modules/metadata/mutations.js +++ b/src/views/admin/js/store/modules/metadata/mutations.js @@ -26,11 +26,9 @@ export const deleteMetadatum = ( state, metadatum ) => { export const setSingleMetadatum = (state, {metadatum, index, isRepositoryLevel}) => { if (metadatum.parent && metadatum.parent >= 0) { const existingParentIndex = state.metadata.findIndex((aMetadatum) => aMetadatum.id == metadatum.parent); - if (existingParentIndex >= 0) { let existingParent = JSON.parse(JSON.stringify(state.metadata[existingParentIndex])); let existingParentChildrenObject = existingParent.metadata_type_options.children_objects; - const existingIndex = existingParentChildrenObject.findIndex((aMetadatum) => aMetadatum.id == metadatum.id); if (index != undefined && index != null) { if (existingIndex >= 0)