From b2f16fcbd5b199847e00faeba743cd52a10f4ca1 Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Sat, 24 Sep 2022 15:46:46 +0200
Subject: Fix mini preview for obj and stl

---
 pages/models/_id/index.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'pages/models/_id/index.vue')

diff --git a/pages/models/_id/index.vue b/pages/models/_id/index.vue
index e293584..6c5bbd4 100644
--- a/pages/models/_id/index.vue
+++ b/pages/models/_id/index.vue
@@ -98,14 +98,14 @@
                 :src="baseAPI + '' + upload.filepath"
               )
               model-stl(
-                v-else-if="isStl(model.uploads[selectedUpload].filepath)"
+                v-else-if="isStl(upload.filepath)"
                 :rotate="rotate"
                 :src="baseAPI + '' + upload.filepath"
                 :backgroundColor="'#D1D5DB'"
                 :controlsOptions="{'enablePan': false, 'enableZoom': false, 'enableRotate': false}"
               )
               model-obj(
-                v-else-if="isObj(model.uploads[selectedUpload].filepath)"
+                v-else-if="isObj(upload.filepath)"
                 :src="baseAPI + '' + upload.filepath"
                 :backgroundColor="'#D1D5DB'"
               )
-- 
cgit v1.2.3-71-g8e6c

