Skip to content

Commit c4c8ec3

Browse files
committed
Fix: retejs#81
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
1 parent 35831a0 commit c4c8ec3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/presets/classic/factory.ts

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export function createItem<S extends BSchemes>(
2828
}
2929
return <Item>{
3030
...item,
31+
handler() {/* do nothing */},
3132
subitems: factory.map((data, i) => createItem(data, i, context))
3233
}
3334
}

0 commit comments

Comments
 (0)