mirror of
https://github.com/chartdb/chartdb.git
synced 2025-11-06 23:13:27 +00:00
toolbar canvas
This commit is contained in:
@@ -61,6 +61,12 @@ export const CreateDiagramDialog: React.FC<CreateDiagramDialogProps> = ({
|
||||
fetchDiagrams();
|
||||
}, [listDiagrams, setDiagramNumber, dialog.open]);
|
||||
|
||||
useEffect(() => {
|
||||
setStep(CreateDiagramDialogStep.SELECT_DATABASE);
|
||||
setDatabaseType(DatabaseType.GENERIC);
|
||||
setScriptResult('');
|
||||
}, [dialog.open]);
|
||||
|
||||
const hasExistingDiagram = (diagramId ?? '').trim().length !== 0;
|
||||
|
||||
const createNewDiagram = useCallback(async () => {
|
||||
|
||||
Reference in New Issue
Block a user