const sanitizedTranslationProps = Object.fromEntries(
Object.entries(allProfiles || {}).map(([key, value]) => [
key,
value === undefined ? null : value,
])
)
Doing it like this solved the same issue for me.