From dff63400b8f5aaf0bede57cf0afa08d44b4adde3 Mon Sep 17 00:00:00 2001 From: Manuel Ruwe Date: Sat, 31 Dec 2022 16:25:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20Critical=20overwrite=20?= =?UTF-8?q?of=20secrets=20due=20to=20type=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/api/configs/[slug].ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, }; }), },