🚑️ Critical overwrite of secrets due to type change

This commit is contained in:
Manuel Ruwe
2022-12-31 16:25:05 +01:00
parent 288d9a5ec5
commit dff63400b8

View File

@@ -44,7 +44,10 @@ function Put(req: NextApiRequest, res: NextApiResponse) {
return {
field: property.field,
type: property.type,
value: property.value !== undefined ? property.value : previousProperty?.value,
value:
property.value !== undefined || property.value === null
? property.value
: previousProperty?.value,
};
}),
},