mirror of
https://github.com/strapi/strapi.git
synced 2025-08-02 05:48:39 +00:00
fix(logo-customization): handled undefined files object
This commit is contained in:
parent
1a6c30f771
commit
aecc0244e3
@ -73,7 +73,7 @@ const getProjectSettings = async () => {
|
|||||||
return projectSettings;
|
return projectSettings;
|
||||||
};
|
};
|
||||||
|
|
||||||
const uploadFiles = async files => {
|
const uploadFiles = async (files = {}) => {
|
||||||
// Call the provider upload function for each file
|
// Call the provider upload function for each file
|
||||||
return Promise.all(Object.values(files).map(strapi.plugin('upload').provider.uploadStream));
|
return Promise.all(Object.values(files).map(strapi.plugin('upload').provider.uploadStream));
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user