added check for not null befor executing function

This commit is contained in:
Abhinav-grd 2021-08-14 10:47:38 +05:30
parent 495f9002bf
commit 617762f1c5

View file

@ -68,7 +68,8 @@ export default function MessageDialog({
attributes.close?.variant ?? 'secondary'
}`}
onClick={() => {
attributes.close?.action();
attributes.close.action &&
attributes.close?.action();
props.onHide();
}}
style={{