mirror of
https://github.com/chartdb/chartdb.git
synced 2025-11-04 22:13:15 +00:00
get current diagram to export
This commit is contained in:
@@ -13,6 +13,7 @@ export interface ChartDBContext {
|
||||
databaseType: DatabaseType;
|
||||
tables: DBTable[];
|
||||
relationships: DBRelationship[];
|
||||
currentDiagram: Diagram;
|
||||
|
||||
// General operations
|
||||
updateDiagramId: (id: string) => Promise<void>;
|
||||
@@ -123,6 +124,11 @@ export const chartDBContext = createContext<ChartDBContext>({
|
||||
diagramId: '',
|
||||
tables: [],
|
||||
relationships: [],
|
||||
currentDiagram: {
|
||||
id: '',
|
||||
name: '',
|
||||
databaseType: DatabaseType.GENERIC,
|
||||
},
|
||||
|
||||
// General operations
|
||||
updateDiagramId: emptyFn,
|
||||
|
||||
Reference in New Issue
Block a user