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
  • Loading branch information
Claybarn committed Mar 3, 2024
1 parent 35831a0 commit 2b4e774
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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,
subitems: factory.map((data, i) => createItem(data, i, context))
handler() {/* do nothing */},
subitems: factory.map((data, i) => createItem(data, i, context)),

Check failure on line 32 in src/presets/classic/factory.ts

View workflow job for this annotation

GitHub Actions / ci / ci

Unexpected trailing comma
}
}

0 comments on commit 2b4e774

Please sign in to comment.