fix(logo-customization): handled undefined files object

This commit is contained in:
vincentbpro 2022-04-15 09:15:07 +02:00
parent 1a6c30f771
commit aecc0244e3

View File

@ -73,7 +73,7 @@ const getProjectSettings = async () => {
return projectSettings;
};
const uploadFiles = async files => {
const uploadFiles = async (files = {}) => {
// Call the provider upload function for each file
return Promise.all(Object.values(files).map(strapi.plugin('upload').provider.uploadStream));
};