Skip to content

Commit

Permalink
Save database type and enums for templates
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilit committed Jul 8, 2024
1 parent 6fee655 commit 84abae7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/EditorHeader/ControlPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -712,11 +712,13 @@ export default function ControlPanel({
.add({
title: title,
tables: tables,
database: database,
relationships: relationships,
types: types,
notes: notes,
subjectAreas: areas,
custom: 1,
...(databases[database].hasEnums && { enums: enums }),
...(databases[database].hasTypes && { types: types }),
})
.then(() => {
Toast.success(t("template_saved"));
Expand Down

0 comments on commit 84abae7

Please sign in to comment.