diff --git a/src/pages/api/configs/[slug].ts b/src/pages/api/configs/[slug].ts index c43309c9f..68f1cc625 100644 --- a/src/pages/api/configs/[slug].ts +++ b/src/pages/api/configs/[slug].ts @@ -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, }; }), },