File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
pages/workflow/composables Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -350,11 +350,7 @@ onMounted(async () => {
350350
351351 // already pre-existed assignment type that requires issue selection and an existing issue ID,
352352 // fetch the issues so the dropdown is populated and the correct issue is pre-selected
353- if (
354- selectedAssignmentType .value &&
355- selectedIssueId .value &&
356- showIssueDropdown .value
357- ) {
353+ if (selectedAssignmentType .value && showIssueDropdown .value ) {
358354 await fetchIssues ();
359355 }
360356
Original file line number Diff line number Diff line change @@ -106,15 +106,14 @@ export function useWorkflowVersionForm(
106106
107107 if ( isOJS ( ) ) {
108108 // if the issue count is 0, e.g. issueless context,
109- // we can safely set the issueId and status to null and
110- // STATUS_READY_TO_PUBLISH
109+ // we can safely set the issueId to null and status to STATUS_READY_TO_PUBLISH
111110 if ( issueCount === 0 ) {
112111 requestBody . issueId = null ;
113112 requestBody . prePublishStatus = pkp . const . STATUS_READY_TO_PUBLISH ;
114113 }
115114 // Add issue assignment data if in publish mode and issue assignment is provided
116- else if ( modeState . isPublishMode && formData . issueAssignment ) {
117- const issueData = formData . issueAssignment ;
115+ else if ( modeState . isPublishMode && formData . issueId ) {
116+ const issueData = formData . issueId ;
118117
119118 requestBody . issueId = issueData . issueId ;
120119 requestBody . prePublishStatus = issueData . publicationStatus ;
@@ -325,7 +324,7 @@ export function useWorkflowVersionForm(
325324 // it's in publish mode
326325 // have issues
327326 if ( modeState . isPublishMode && issueCount > 0 && isOJS ( ) ) {
328- addField ( 'issueAssignment ' , {
327+ addField ( 'issueId ' , {
329328 component : 'FieldIssueSelection' ,
330329 issueCount : issueCount ,
331330 publication : store . selectedPublication ,
You can’t perform that action at this time.
0 commit comments