added extra checks to image display (#14241)

This commit is contained in:
Brainslug
2022-07-01 16:20:47 +02:00
committed by GitHub
parent d9577eba8a
commit 7b16abdcac

View File

@@ -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);
});