Skip to content

Commit c23e537

Browse files
committed
Fix context menu sample (right click on empty canvas)
1 parent 8916548 commit c23e537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/features/Context-Menu.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To adjust the context menu visualization, add a custom React component using the
2020
<ProcessMining
2121
eventLog={data}
2222
timestamp={5}
23-
renderContextMenu={({item}) => 'label' in item && item.label && (
23+
renderContextMenu={({item}) => item && 'label' in item && item.label && (
2424
<button onClick={() => alert(\`\${item.label} clicked!\`)}>Click here!</button>
2525
)}
2626
></ProcessMining>

0 commit comments

Comments
 (0)