From df52072289768424bdb33796ec033d4c680da774 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 29 Aug 2022 16:39:26 +0200 Subject: [PATCH] core-app-api: tweak path property check in v2 traversal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: blam Co-authored-by: Fredrik Adelöw Co-authored-by: Johan Haals Signed-off-by: Patrik Oldsberg --- packages/core-app-api/src/routing/collectors.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-app-api/src/routing/collectors.tsx b/packages/core-app-api/src/routing/collectors.tsx index 1a2bd2f431..e5d71f5117 100644 --- a/packages/core-app-api/src/routing/collectors.tsx +++ b/packages/core-app-api/src/routing/collectors.tsx @@ -109,7 +109,7 @@ export const routingV2Collector = createCollector( const parentChildren = ctx?.obj?.children ?? acc.objects; - if (pathProp) { + if (pathProp !== undefined) { if (typeof pathProp !== 'string') { throw new Error( `Element path must be a string at "${stringifyNode(node)}"`,