diff --git a/interface/src/project/CustomEntitiesDialog.tsx b/interface/src/project/CustomEntitiesDialog.tsx index 1863ca337..c7831eb7f 100644 --- a/interface/src/project/CustomEntitiesDialog.tsx +++ b/interface/src/project/CustomEntitiesDialog.tsx @@ -64,8 +64,10 @@ const CustomEntitiesDialog = ({ } }, [open, selectedItem]); - const close = () => { - onClose(); + const handleClose = (event: {}, reason: 'backdropClick' | 'escapeKeyDown') => { + if (reason !== 'backdropClick') { + onClose(); + } }; const save = async () => { @@ -90,7 +92,7 @@ const CustomEntitiesDialog = ({ }; return ( - + {creating ? LL.ADD(1) + ' ' + LL.NEW(1) : LL.EDIT()} {LL.ENTITY()} @@ -314,7 +316,7 @@ const CustomEntitiesDialog = ({