Skip to content

Commit 47b92a6

Browse files
committed
pkp/pkp-lib#9295 fixed publication from checking for issue field
1 parent a7b9bff commit 47b92a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pages/workflow/components/publication/WorkflowPublicationForm.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {useFetch} from '@/composables/useFetch';
1919
import {useForm} from '@/composables/useForm';
2020
import {useUrl} from '@/composables/useUrl';
2121
import {useDataChanged} from '@/composables/useDataChanged';
22+
import {useApp} from '@/composables/useApp';
2223
import {useWorkflowPublicationFormIssue} from '../../composables/useWorkflowPublicationFormIssue';
2324
2425
const props = defineProps({
@@ -29,6 +30,8 @@ const props = defineProps({
2930
publication: {type: Object, required: true},
3031
});
3132
33+
const {isOJS} = useApp();
34+
3235
const relativeUrl = computed(() => {
3336
return `submissions/${props.submission.id}/publications/${props.publication.id}/_components/${props.formName}`;
3437
});
@@ -77,7 +80,7 @@ async function issueDataChange() {
7780
watch(
7881
form,
7982
async (newForm) => {
80-
if (newForm && props.formName === 'issue') {
83+
if (newForm && props.formName === 'issue' && isOJS()) {
8184
await useWorkflowPublicationFormIssue(newForm);
8285
}
8386
},

0 commit comments

Comments
 (0)