Skip to content

Commit

Permalink
pkp/pkp-lib#10480 Update availableEditorialDecisions which is now dir…
Browse files Browse the repository at this point in the history
…ectly under submission
  • Loading branch information
jardakotesovec authored and Vitaliy-1 committed Jan 20, 2025
1 parent 47dac4d commit 99f962c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/composables/useSubmission.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ export function useSubmission() {

function isDecisionAvailable(submission, decisionId) {
const stage = getActiveStage(submission);
return stage?.availableEditorialDecisions?.some(
(decision) => decision.id === decisionId,
return submission?.availableEditorialDecisions?.some(
(decision) => decision.id === decisionId && decision.stageId === stage.id,
);
}

Expand Down

0 comments on commit 99f962c

Please sign in to comment.