mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-15 20:22:33 +03:00
fix: avoid handling if no modalForm
This commit is contained in:
parent
6271fe5560
commit
ea70514b98
@ -29,7 +29,7 @@
|
||||
});
|
||||
|
||||
function handleClickOutside(e: MouseEvent) {
|
||||
if (!modalForm.contains(e.target as Node)) {
|
||||
if (!modalForm?.contains(e.target as Node)) {
|
||||
dialog.close();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user