Преглед на файлове

@uppy/dashboard: fix `TypeError` when `file.remote` is nullish (#4825)

Antoine du Hamel преди 1 година
родител
ревизия
5596369303
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/@uppy/dashboard/src/components/FileItem/FileInfo/index.jsx

+ 1 - 1
packages/@uppy/dashboard/src/components/FileItem/FileInfo/index.jsx

@@ -31,7 +31,7 @@ const renderFileName = (props) => {
 
 const renderAuthor = (props) => {
   const { author } = props.file.meta
-  const { providerName } = props.file.remote
+  const providerName = props.file.remote?.providerName
   const dot = `\u00B7`
 
   if (!author) {