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';
19
19
import {useForm } from ' @/composables/useForm' ;
20
20
import {useUrl } from ' @/composables/useUrl' ;
21
21
import {useDataChanged } from ' @/composables/useDataChanged' ;
22
+ import {useApp } from ' @/composables/useApp' ;
22
23
import {useWorkflowPublicationFormIssue } from ' ../../composables/useWorkflowPublicationFormIssue' ;
23
24
24
25
const props = defineProps ({
@@ -29,6 +30,8 @@ const props = defineProps({
29
30
publication: {type: Object , required: true },
30
31
});
31
32
33
+ const {isOJS } = useApp ();
34
+
32
35
const relativeUrl = computed (() => {
33
36
return ` submissions/${ props .submission .id } /publications/${ props .publication .id } /_components/${ props .formName } ` ;
34
37
});
@@ -77,7 +80,7 @@ async function issueDataChange() {
77
80
watch (
78
81
form,
79
82
async (newForm ) => {
80
- if (newForm && props .formName === ' issue' ) {
83
+ if (newForm && props .formName === ' issue' && isOJS () ) {
81
84
await useWorkflowPublicationFormIssue (newForm);
82
85
}
83
86
},
You can’t perform that action at this time.
0 commit comments