Skip to content

Commit

Permalink
Adds new checking in Vue method
Browse files Browse the repository at this point in the history
Issue: documentacao-e-tarefas/scielo#707

Signed-off-by: Jhon <jhon@lepidus.com.br>
  • Loading branch information
JhonathanLepidus committed Oct 11, 2024
1 parent 829a523 commit 2a8c4f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/DataverseWorkflowPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 2a8c4f3

Please sign in to comment.