fix: avoid handling if no modalForm

This commit is contained in:
ndom91 2024-06-06 16:59:59 +02:00
parent 6271fe5560
commit ea70514b98
No known key found for this signature in database

View File

@ -29,7 +29,7 @@
});
function handleClickOutside(e: MouseEvent) {
if (!modalForm.contains(e.target as Node)) {
if (!modalForm?.contains(e.target as Node)) {
dialog.close();
}
}