diff --git a/arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue b/arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue index 1aeeb118..82c5df9d 100644 --- a/arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue +++ b/arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue @@ -54,11 +54,20 @@ const metatypeOptions = ref([]); const eventTypeOptions = ref([]); onMounted(async () => { - languageOptions.value = await getOptions(LANGUAGE_CONTROLLED_LIST); - typeOptions.value = await getOptions(LABEL_CONTROLLED_LIST); - statusOptions.value = await getOptions(STATUSES_CONTROLLED_LIST); - metatypeOptions.value = await getOptions(METATYPES_CONTROLLED_LIST); - eventTypeOptions.value = await getOptions(EVENT_TYPES_CONTROLLED_LIST); + const [languageOpts, typeOpts, statusOpts, metatypeOpts, eventTypeOpts] = + await Promise.all([ + getOptions(LANGUAGE_CONTROLLED_LIST), + getOptions(LABEL_CONTROLLED_LIST), + getOptions(STATUSES_CONTROLLED_LIST), + getOptions(METATYPES_CONTROLLED_LIST), + getOptions(EVENT_TYPES_CONTROLLED_LIST), + ]); + + languageOptions.value = languageOpts; + typeOptions.value = typeOpts; + statusOptions.value = statusOpts; + metatypeOptions.value = metatypeOpts; + eventTypeOptions.value = eventTypeOpts; }); diff --git a/arches_lingo/src/arches_lingo/components/generic/ReferenceDatatype.vue b/arches_lingo/src/arches_lingo/components/generic/ReferenceDatatype.vue index 0ea42ce9..1472e52a 100644 --- a/arches_lingo/src/arches_lingo/components/generic/ReferenceDatatype.vue +++ b/arches_lingo/src/arches_lingo/components/generic/ReferenceDatatype.vue @@ -13,9 +13,9 @@ defineProps<{ multiValue?: boolean; options?: ControlledListItem[]; }>(); -const emits = defineEmits(["update"]); +const emit = defineEmits(["update"]); const onUpdate = (val: ControlledListItem[]) => { - emits("update", val); + emit("update", val); };