diff --git a/app/javascript/wardrobe-2020/components/OutfitPreview.js b/app/javascript/wardrobe-2020/components/OutfitPreview.js index 9a781420..2e138025 100644 --- a/app/javascript/wardrobe-2020/components/OutfitPreview.js +++ b/app/javascript/wardrobe-2020/components/OutfitPreview.js @@ -215,6 +215,10 @@ export function OutfitLayers({ return () => window.removeEventListener("resize", computeAndSaveCanvasSize); }, [setCanvasSize]); + const layersWithAssets = visibleLayers.filter((l) => + layerHasUsableAssets(l, { hiResMode }), + ); + return ( {({ css }) => ( @@ -247,7 +251,7 @@ export function OutfitLayers({ )} - {visibleLayers.map((layer) => ( + {layersWithAssets.map((layer) => (