We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5030fa5 commit a663eafCopy full SHA for a663eaf
src/pages/workflow/components/publication/WorkflowPublicationForm.vue
@@ -55,7 +55,15 @@ const displayNoFieldsEnabled = computed(() => {
55
return false;
56
});
57
58
-const {triggerDataChange} = useDataChanged();
+const {triggerDataChange} =
59
+ {
60
+ metadata: () => useDataChanged(customDataChange),
61
+ }[props.formName] ?? useDataChanged();
62
63
const {set, form} = useForm(publicationForm);
64
+
65
+async function customDataChange() {
66
+ // Some metadata fields need extra data from db not in publication object
67
+ fetchForm();
68
+}
69
</script>
0 commit comments