소스 검색

fix: resolve TS error in onLinkPaste

unknown 2 달 전
부모
커밋
5cc7173603
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);