Explorar el Código

Update code example for getFiles (#4189)

Tim Whitney hace 2 años
padre
commit
473796b439
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      website/src/docs/core.md

+ 1 - 1
website/src/docs/core.md

@@ -514,7 +514,7 @@ Get an array of all [File Objects][] that have been added to Uppy.
 ```js
 import prettierBytes from '@transloadit/prettier-bytes'
 
-const items = uppy.getFiles().map(() => `<li>${file.name} - ${prettierBytes(file.size)}</li>`).join('')
+const items = uppy.getFiles().map((file) => `<li>${file.name} - ${prettierBytes(file.size)}</li>`).join('')
 document.querySelector('.file-list').innerHTML = `<ul>${items}</ul>`
 ```