perf: clean payload
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Jon Elias 2025-03-26 14:15:01 +01:00
parent a3b1095952
commit e353f7916a
1 changed files with 1 additions and 2 deletions

View File

@ -105,8 +105,7 @@ function cleanPayload(payload) {
payload[prop] = payload[prop].filter(
(item) => item.description !== '' && item.observationTypeFk !== '',
);
}
if (prop === 'deletes') {
} else {
payload[prop] = payload[prop].filter(
(item) => item !== null && item !== undefined,
);