clear diagram data

This commit is contained in:
Guy Ben-Aharon
2024-08-23 03:17:52 +03:00
parent c4948b0853
commit c43e8d7f30
9 changed files with 498 additions and 219 deletions

View File

@@ -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();