Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 977c409688 |
@@ -175,8 +175,10 @@ imageClassName = "",
|
||||
|
||||
const enhancedButtons = buttons?.map((button) => ({
|
||||
...button,
|
||||
onClick: (e: React.MouseEvent<HTMLButtonElement>) => {
|
||||
handleButtonClick(e, button.onClick as (() => void) | undefined);
|
||||
onClick: (e: React.MouseEvent<HTMLButtonElement> | null) => {
|
||||
if (e && e.currentTarget) {
|
||||
handleButtonClick(e, button.onClick as (() => void) | undefined);
|
||||
}
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user