diff --git a/frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/index.jsx b/frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/index.jsx index eac081b7f4ebb8a8d56de4833b94945480399912..6d5b38160d50107d7deda84d41d7151f3506f062 100644 --- a/frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/index.jsx +++ b/frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/index.jsx @@ -82,7 +82,9 @@ export default function UploadFile({ workspace, fileTypes, fetchKeys }) { </div> <div className="text-white text-opacity-60 text-xs font-medium py-1"> Supported file extensions are{" "} - {Object.values(fileTypes).flat().join(" ")} + {Object.values(fileTypes ?? []) + .flat() + .join(" ")} </div> </div> ) : (