diff --git a/packages/@uppy/dashboard/src/components/FileList.js b/packages/@uppy/dashboard/src/components/FileList.js index 191a58cf64..4284b4d7bd 100644 --- a/packages/@uppy/dashboard/src/components/FileList.js +++ b/packages/@uppy/dashboard/src/components/FileList.js @@ -68,27 +68,25 @@ module.exports = (props) => { if (props.recoveredState) files.sort(sortByGhostComesFirst) const rows = chunks(files, props.itemsPerRow) - function renderRow (row) { - return ( - // The `role="presentation` attribute ensures that the list items are properly - // associated with the `VirtualList` element. - // We use the first file ID as the key—this should not change across scroll rerenders -
- {row.map((fileID) => ( - - ))} -
- ) - } + const renderRow = (row) => ( + // The `role="presentation` attribute ensures that the list items are properly + // associated with the `VirtualList` element. + // We use the first file ID as the key—this should not change across scroll rerenders +
+ {row.map((fileID) => ( + + ))} +
+ ) return (