Skip to content

Commit d84caa6

Browse files
committed
chore(cli): simplify image thumbnail fallback guard
1 parent 864b78d commit d84caa6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cli/src/components/image-thumbnail.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,7 @@ export const ImageThumbnail = memo(({
6262
}
6363
}, [imagePath, width, height])
6464

65-
if (isLoading) {
66-
return <>{fallback}</>
67-
}
68-
69-
if (error || !thumbnailData) {
65+
if (isLoading || error || !thumbnailData) {
7066
return <>{fallback}</>
7167
}
7268

0 commit comments

Comments
 (0)