diff --git a/apps/tailwind-components/components/form/Field.vue b/apps/tailwind-components/components/form/Field.vue index e6926a7bee..609f1a6620 100644 --- a/apps/tailwind-components/components/form/Field.vue +++ b/apps/tailwind-components/components/form/Field.vue @@ -35,6 +35,18 @@ function validate(value: columnValue) { formFieldInput.value.validate(value); } + +const refData = ref(); + +onMounted(async () => { + if (["ONTOLOGY", "ONTOLOGY_ARRAY"].includes(props.column.columnType)) { + const response = await fetchTableData( + props.column.refSchemaId as string, + props.column.refTableId as string + ); + refData.value = response.rows.map((row) => row.name); + } +});