pl-fe: fix parsing issue after migration from immutable
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
3f4a6c149b
commit
ea81f788c7
1 changed files with 1 additions and 1 deletions
|
@ -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, {});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue