Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8f54a92

Browse files
committedApr 1, 2024·
fix: Fix match logic
1 parent 7f08c16 commit 8f54a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎packages/client/src/composables/select.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function useDefaultSelect() {
6363
}
6464

6565
function getValidNestedNodeId(treeNode: ComponentTreeNode[]) {
66-
return treeNode.some(({ id: treeNodeId, children }) => getValidNodeId(children) || treeNodeId === route.params.id) && (route.params.id as string)
66+
return treeNode.some(({ id: treeNodeId, children }) => getValidNestedNodeId(children) || treeNodeId === route.params.id) && (route.params.id as string)
6767
}
6868

6969
return {

0 commit comments

Comments
 (0)
Please sign in to comment.