From 1f775c4dd2e6568b1cc826e13867a3d9ce1ea2d1 Mon Sep 17 00:00:00 2001 From: Misode Date: Fri, 16 Apr 2021 17:30:25 +0200 Subject: [PATCH] Fully disable object flattening --- src/app/hooks/customValidation.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/hooks/customValidation.ts b/src/app/hooks/customValidation.ts index ac5abd5c..fcc6b407 100644 --- a/src/app/hooks/customValidation.ts +++ b/src/app/hooks/customValidation.ts @@ -25,6 +25,7 @@ export const customValidation: Hook<[any, Errors], void> = walk<[Errors]>({ } }, + /* object({ node, getActiveFields }, path, value) { let activeFields = getActiveFields(path) const filterKey = path.modelArr.length === 0 ? null : node.hook(getFilterKey, path, path) @@ -37,4 +38,5 @@ export const customValidation: Hook<[any, Errors], void> = walk<[Errors]>({ } } } + */ })