Skip to content

Commit dbc1ca0

Browse files
committed
close modal
1 parent e47687e commit dbc1ca0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/compass-data-modeling/src/components/export-diagram-modal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ const ExportDiagramModal = ({
6666
return;
6767
}
6868
exportToJson(diagramLabel, model);
69-
}, [exportFormat, model, diagramLabel]);
69+
onCloseClick();
70+
}, [exportFormat, onCloseClick, model, diagramLabel]);
7071

7172
return (
7273
<Modal open={isModalOpen} setOpen={onCloseClick}>

0 commit comments

Comments
 (0)