From 8f54a92613f34a55478c2afd1271920fc81ce528 Mon Sep 17 00:00:00 2001 From: Fan Pei Date: Mon, 1 Apr 2024 17:31:20 +0900 Subject: [PATCH] fix: Fix match logic --- packages/client/src/composables/select.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/composables/select.ts b/packages/client/src/composables/select.ts index d00bd32c..6c415370 100644 --- a/packages/client/src/composables/select.ts +++ b/packages/client/src/composables/select.ts @@ -63,7 +63,7 @@ export function useDefaultSelect() { } function getValidNestedNodeId(treeNode: ComponentTreeNode[]) { - return treeNode.some(({ id: treeNodeId, children }) => getValidNodeId(children) || treeNodeId === route.params.id) && (route.params.id as string) + return treeNode.some(({ id: treeNodeId, children }) => getValidNestedNodeId(children) || treeNodeId === route.params.id) && (route.params.id as string) } return {