Ver Fonte

fix(docs): Change Uploading Files example (#2219)

Hiago Alves há 2 anos atrás
pai
commit
744f983d8c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      docs/content/developer-guide/uploading-files.md

+ 1 - 1
docs/content/developer-guide/uploading-files.md

@@ -45,7 +45,7 @@ function UploadFile() {
     if (target.validity.valid) {
       mutate({ 
         variables: {
-          input: target.files.map(file => ({ file }))
+          input: Array.from(target.files).map((file) => ({ file }));
         }  
       });
     }