mirror of
https://github.com/directus/directus.git
synced 2026-01-30 21:57:58 -05:00
added extra checks to image display (#14241)
This commit is contained in:
@@ -39,7 +39,7 @@ export default defineComponent({
|
||||
const imageError = ref(false);
|
||||
|
||||
const src = computed(() => {
|
||||
if (props.value === null) return null;
|
||||
if (props.value?.id === null || props.value?.id === undefined) return null;
|
||||
const url = getRootPath() + `assets/${props.value.id}?key=system-small-cover`;
|
||||
return addTokenToURL(url);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user