diff --git a/src/components/fields/Group.vue b/src/components/fields/Group.vue index 32dc934..5af9f41 100644 --- a/src/components/fields/Group.vue +++ b/src/components/fields/Group.vue @@ -47,6 +47,12 @@ const options = ref([]); const disabled = ref(false); async function refreshOptions() { + if (props.field.parent_group === null && props.field.parent_field === null) { + emit('update:modelValue', null); + options.value = (await axios.get('/api/group')).data.data; + disabled.value = false; + return; + } if (props.field.parent_group !== null) { emit('update:modelValue', null); options.value = (await axios.get('/api/group/' + props.field.parent_group)).data.data;