Protect against non functions being passed to close callback (#3019)
This commit is contained in:
parent
0c3d55db6f
commit
d2c6edacb6
5 changed files with 21 additions and 12 deletions
|
|
@ -190,7 +190,7 @@ export function Close() {
|
|||
variant="ghost"
|
||||
color="secondary"
|
||||
shape="round"
|
||||
onPress={close}
|
||||
onPress={() => close()}
|
||||
label={_(msg`Close active dialog`)}>
|
||||
<ButtonIcon icon={X} size="md" />
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue