mirror of
https://github.com/directus/directus.git
synced 2026-01-28 01:28:26 -05:00
fix no options in repeater (#9113)
before: page does render if repeater has no options after: page renders and repeater showe no options
This commit is contained in:
@@ -131,7 +131,9 @@ export default defineComponent({
|
||||
const drawerOpen = computed(() => active.value !== null);
|
||||
const { value } = toRefs(props);
|
||||
|
||||
const templateWithDefaults = computed(() => props.template || `{{${props.fields[0].field}}}`);
|
||||
const templateWithDefaults = computed(() =>
|
||||
props.template || props.fields?.[0]?.field ? `{{${props.fields[0].field}}}` : ''
|
||||
);
|
||||
|
||||
const showAddNew = computed(() => {
|
||||
if (props.disabled) return false;
|
||||
|
||||
Reference in New Issue
Block a user