File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/pages/workflow/components/publication Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import {useFetch} from '@/composables/useFetch';
1919import {useForm } from ' @/composables/useForm' ;
2020import {useUrl } from ' @/composables/useUrl' ;
2121import {useDataChanged } from ' @/composables/useDataChanged' ;
22+ import {useApp } from ' @/composables/useApp' ;
2223import {useWorkflowPublicationFormIssue } from ' ../../composables/useWorkflowPublicationFormIssue' ;
2324
2425const props = defineProps ({
@@ -29,6 +30,8 @@ const props = defineProps({
2930 publication: {type: Object , required: true },
3031});
3132
33+ const {isOJS } = useApp ();
34+
3235const relativeUrl = computed (() => {
3336 return ` submissions/${ props .submission .id } /publications/${ props .publication .id } /_components/${ props .formName } ` ;
3437});
@@ -77,7 +80,7 @@ async function issueDataChange() {
7780watch (
7881 form,
7982 async (newForm ) => {
80- if (newForm && props .formName === ' issue' ) {
83+ if (newForm && props .formName === ' issue' && isOJS () ) {
8184 await useWorkflowPublicationFormIssue (newForm);
8285 }
8386 },
You can’t perform that action at this time.
0 commit comments