diff --git a/js/DataverseWorkflowPage.js b/js/DataverseWorkflowPage.js index 2458146..13fce43 100644 --- a/js/DataverseWorkflowPage.js +++ b/js/DataverseWorkflowPage.js @@ -23,8 +23,8 @@ var DataverseWorkflowPage = $.extend(true, {}, pkp.controllers.WorkflowPage, { }, datasetIsPublished: function () { - if (this.datasetIsLoading) { - return true; + if (this.datasetIsLoading || this.dataset == null) { + return false; } return this.dataset.versionState === 'RELEASED'; diff --git a/version.xml b/version.xml index bd58a46..011ba99 100644 --- a/version.xml +++ b/version.xml @@ -13,8 +13,8 @@ dataverse plugins.generic - 3.1.1.0 - 2024-10-10 + 3.1.2.0 + 2024-10-11 1 DataversePlugin