Update to not submit 'undefined' values to backend

This commit is contained in:
2024-06-14 11:38:55 -05:00
parent 826bed4537
commit 2ed95ff77a

View File

@ -1348,7 +1348,10 @@ function ProcessRun({process, table, defaultProcessValues, isModal, isWidget, is
const formData = new FormData();
Object.keys(values).forEach((key) =>
{
formData.append(key, values[key]);
if (values[key] !== undefined)
{
formData.append(key, values[key]);
}
});
if (tableVariantLocalStorageKey && localStorage.getItem(tableVariantLocalStorageKey))