added check for not null befor executing function
This commit is contained in:
parent
495f9002bf
commit
617762f1c5
|
@ -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={{
|
||||
|
|
Loading…
Reference in a new issue