pl-fe: fix parsing issue after migration from immutable

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-11-08 21:17:38 +01:00
parent 3f4a6c149b
commit ea81f788c7

View file

@ -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, {});
}