diff --git a/.changeset/chilly-fishes-own.md b/.changeset/chilly-fishes-own.md new file mode 100644 index 0000000000..b6517f3ba3 --- /dev/null +++ b/.changeset/chilly-fishes-own.md @@ -0,0 +1,5 @@ +--- +'@directus/app': patch +--- + +Fixed displaying of thumbnail in O2M/M2O/M2A interfaces diff --git a/app/src/views/private/components/render-template.vue b/app/src/views/private/components/render-template.vue index e2784b32c4..84b377bc3f 100644 --- a/app/src/views/private/components/render-template.vue +++ b/app/src/views/private/components/render-template.vue @@ -134,7 +134,7 @@ function handleObject(fieldKey: string) { .join('.'); } - const value = get(props.item, fieldKey); + const value = fieldKey ? get(props.item, fieldKey) : props.item; if (value === undefined) return null;