diff --git a/js/ui/components/DataStatementForm.js b/js/ui/components/DataStatementForm.js index 2d11bb57..edb69ea8 100644 --- a/js/ui/components/DataStatementForm.js +++ b/js/ui/components/DataStatementForm.js @@ -10,8 +10,8 @@ pkp.Vue.component('data-statement-form', { shouldShowField(field) { const dataStatementTypesField = this.fields.find( (field) => field.name === 'dataStatementTypes' - ) - if (dataStatementTypesField.value === null) { + ); + if (!Array.isArray(dataStatementTypesField.value)) { dataStatementTypesField.value = []; } if ( diff --git a/version.xml b/version.xml index 47e3ac83..8a3563d4 100644 --- a/version.xml +++ b/version.xml @@ -13,8 +13,8 @@ dataverse plugins.generic - 2.3.1.0 - 2023-07-12 + 2.3.2.0 + 2023-07-13 1 DataversePlugin