From ea81f788c7516aa3d595d30ad13bf81a92a5f5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 8 Nov 2024 21:17:38 +0100 Subject: [PATCH] pl-fe: fix parsing issue after migration from immutable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/utils/config-db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pl-fe/src/utils/config-db.ts b/packages/pl-fe/src/utils/config-db.ts index 7ed0b256f..0b01a015d 100644 --- a/packages/pl-fe/src/utils/config-db.ts +++ b/packages/pl-fe/src/utils/config-db.ts @@ -28,7 +28,7 @@ const toSimplePolicy = (configs: PleromaConfig['configs']) => { if (config) { const value = config.value || []; const result = value.reduce(reducer, {}); - return v.parse(mrfSimpleSchema, result.toJS()); + return v.parse(mrfSimpleSchema, result); } else { return v.parse(mrfSimpleSchema, {}); }