fix(web): asset viewer showing wrong viewer type when hovering on stack thumbnails (#26741)

This commit is contained in:
Snowknight26
2026-03-06 14:17:11 -06:00
committed by GitHub
parent 6012d22d98
commit 6e9a425592

View File

@@ -362,7 +362,7 @@
const viewerKind = $derived.by(() => {
if (previewStackedAsset) {
return asset.type === AssetTypeEnum.Image ? 'StackPhotoViewer' : 'StackVideoViewer';
return previewStackedAsset.type === AssetTypeEnum.Image ? 'StackPhotoViewer' : 'StackVideoViewer';
}
if (asset.type === AssetTypeEnum.Video) {
return 'VideoViewer';