Skip to content

Commit

Permalink
fix: Fix match logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Azurewarth0920 committed Apr 1, 2024
1 parent 7f08c16 commit 8f54a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/composables/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8f54a92

Please sign in to comment.