fix issue with empty file associations input breaking the save process in Dev Center

This commit is contained in:
jelveh 2024-12-14 13:26:52 -08:00
parent ce36a685fc
commit 2061d571b0

View File

@ -1166,12 +1166,10 @@ $(document).on('click', '.edit-app-save-btn', async function (e) {
}
// parse filetype_associations
if(filetype_associations !== ''){
filetype_associations = JSON.parse(filetype_associations);
filetype_associations = filetype_associations.map((type) => {
const fileType = type.value;
if (
!fileType ||
fileType === "." ||
@ -1190,6 +1188,7 @@ $(document).on('click', '.edit-app-save-btn', async function (e) {
return "." + lower;
}
}).filter(Boolean);
}
// error?
if (error) {