Browse Source

fix: resolve TS error in onLinkPaste

unknown 2 tháng trước cách đây
mục cha
commit
5cc7173603
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/ModelUploadSection.vue

+ 1 - 1
src/components/ModelUploadSection.vue

@@ -561,7 +561,7 @@ async function handleImportUrl() {
 function onLinkPaste() {
   // Wait for next tick to let v-model update
   setTimeout(() => {
-    if ((modelLink.value.includes('thingiverse.com') || modelLink.value.includes('printables.com')) && !files.length) {
+    if ((modelLink.value.includes('thingiverse.com') || modelLink.value.includes('printables.com')) && !files.value.length) {
       handleImportUrl();
     }
   }, 100);