diff --git a/src/app/components/OutfitPreview.js b/src/app/components/OutfitPreview.js index 14e6055..f6d4b08 100644 --- a/src/app/components/OutfitPreview.js +++ b/src/app/components/OutfitPreview.js @@ -341,7 +341,11 @@ export function usePreloadLayers(layers) { } catch (e) { if (canceled) return; console.error("Error preloading outfit layers", e); - assetPromises.forEach((p) => p.cancel()); + assetPromises.forEach((p) => { + if (p.cancel) { + p.cancel(); + } + }); setError(e); return; }