We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e54fad1 commit 740c6b3Copy full SHA for 740c6b3
src/Modal.tsx
@@ -99,8 +99,8 @@ class Modal extends React.Component<IModalPortalProps, IState> {
99
const index = prev.rows.findIndex(row => row.queueKey === queueKey);
100
if(index === -1) return prev;
101
102
- const {onHide} = prev.rows[index];
103
- if(onHide) onHide(queueKey);
+ const curr = prev.rows[index];
+ if(curr?.onHide) curr.onHide(queueKey);
104
105
return {
106
rows: removeByIndex(prev.rows, index),
0 commit comments