Fix an issue with the old tricolor stage handler

This commit is contained in:
Matt Isenhower 2024-09-12 09:58:23 -07:00
parent e0585bebcb
commit 2dee0c05f4

View File

@ -64,7 +64,7 @@ function defineSplatfestRegionStore(region) {
}
// Move the thumbnail image to "thumbnailImage" and pull in the high-res image for the stage
if (!('thumbnailImage' in fest.tricolorStage)) {
if (fest.tricolorStage && !fest.tricolorStage.thumbnailImage) {
fest.tricolorStage.thumbnailImage = fest.tricolorStage.image;
fest.tricolorStage.image =
vsStages.nodes.find(s => s.id === fest.tricolorStage.id)?.originalImage ||