mirror of
https://github.com/chartdb/chartdb.git
synced 2025-11-05 06:23:17 +00:00
clear diagram data
This commit is contained in:
@@ -45,6 +45,7 @@ export const ExportSQLDialog: React.FC<ExportSQLDialogProps> = ({
|
||||
}, [targetDatabaseType, currentDiagram]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!dialog.open) return;
|
||||
setScript(undefined);
|
||||
const fetchScript = async () => {
|
||||
const script = await exportSQLScript();
|
||||
|
||||
Reference in New Issue
Block a user