Skip to content

Commit e06e700

Browse files
committed
Controlled vocabulary support
1 parent 47d2378 commit e06e700

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/components/Form/fields/Autosuggest.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,18 @@
9999
<li>
100100
{{ suggestion.label }}
101101
</li>
102-
<li v-if="suggestion.identifier?.match(/^http/)">
103-
<a :href="suggestion.identifier" target="_blank" @click.stop>
102+
<li v-if="suggestion.identifier">
103+
<a
104+
v-if="suggestion.identifier.match(/^http/)"
105+
:href="suggestion.identifier"
106+
target="_blank"
107+
@click.stop
108+
>
104109
{{ suggestion.identifier }}
105110
</a>
106-
</li>
107-
<li v-else-if="suggestion.identifier">
108-
{{ suggestion.identifier }}
111+
<template v-else>
112+
{{ suggestion.identifier }}
113+
</template>
109114
</li>
110115
<li
111116
v-for="(extraItem, extraItemKey) in suggestion.extraItems ?? {}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ const {set, form} = useForm(publicationForm);
6565
6666
async function metadataDataChange() {
6767
// Some metadata fields need extra data from db not in publication object
68-
fetchForm();
68+
await fetchForm();
6969
}
7070
</script>

0 commit comments

Comments
 (0)