Fix file selection drawer failing when some files fail loading (#22530)

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
This commit is contained in:
Hannes Küttner
2024-05-21 12:49:58 +02:00
committed by GitHub
parent c849947751
commit 900d3a76c4
3 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'@directus/app': patch
---
Fixed the cards layout if used with files that fail loading

View File

@@ -0,0 +1,5 @@
---
"@directus/app": patch
---
Fixed an issue where the file selection drawer could not be opened when some files fail loading

View File

@@ -106,7 +106,7 @@ function handleClick() {
<div class="selection-fade"></div>
<v-skeleton-loader v-if="loading" />
<template v-else>
<v-icon-file v-if="type || imgError" :ext="type" />
<v-icon-file v-if="type || imgError" :ext="type ?? ''" />
<template v-else>
<v-image
v-if="showThumbnail"