Explorar el Código

fix: resolve TS error in onLinkPaste

unknown hace 2 meses
padre
commit
5cc7173603
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);