diff --git a/src/renderer/components/maps-mangement-components/map-item.component.tsx b/src/renderer/components/maps-mangement-components/map-item.component.tsx index 2d40d95b..8a93b6cd 100644 --- a/src/renderer/components/maps-mangement-components/map-item.component.tsx +++ b/src/renderer/components/maps-mangement-components/map-item.component.tsx @@ -52,7 +52,7 @@ export function MapItem({hash, title, autor, songAutor, coverUrl, songUrl, autor const songPlaying = useObservable(audioPlayer.playing$.pipe(map(playing => playing && audioPlayer.src === songUrl))); const zipUrl = `https://r2cdn.beatsaver.com/${hash}.zip`; - const previewUrl = `https://skystudioapps.com/bs-viewer/?url=${zipUrl}`; + const previewUrl = mapId ? `https://skystudioapps.com/bs-viewer/?id=${mapId}` : null; const mapUrl = mapId ? `https://beatsaver.com/maps/${mapId}` : null; const authorUrl = autorId ? `https://beatsaver.com/profile/${autorId}` : null; const createdDate = createdAt ? dateFormat(createdAt, "d mmm yyyy") : null; @@ -203,7 +203,7 @@ export function MapItem({hash, title, autor, songAutor, coverUrl, songUrl, autor