Skip to content

Commit

Permalink
Fix: #81
Browse files Browse the repository at this point in the history
Create empty handler function to avert crash when item with subitems is clicked clicked

Update factory.ts

Update factory.ts

Update factory.ts

fixed trailing comma
  • Loading branch information
Claybarn committed Mar 7, 2024
1 parent 35831a0 commit c4c8ec3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/presets/classic/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function createItem<S extends BSchemes>(
}
return <Item>{
...item,
handler() {/* do nothing */},
subitems: factory.map((data, i) => createItem(data, i, context))
}
}

0 comments on commit c4c8ec3

Please sign in to comment.