Skip to content

Commit

Permalink
fix(nested): convert ids to string in duplicate warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Sep 19, 2024
1 parent ae7a667 commit 2728a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/src/composables/nested/nested.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ export const useNested = (props: NestedProps) => {
}),
register: (id, parentId, isGroup) => {
if (nodeIds.has(id)) {
const path = getPath(id).join(' -> ')
const newPath = getPath(parentId).concat(id).join(' -> ')
const path = getPath(id).map(String).join(' -> ')
const newPath = getPath(parentId).concat(id).map(String).join(' -> ')
consoleError(`Multiple nodes with the same ID\n\t${path}\n\t${newPath}`)
return
} else {
Expand Down

0 comments on commit 2728a10

Please sign in to comment.