Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: support create table (#8683)

ecmadao97b166861c68
diff --git a/frontend/src/components/SchemaEditorV1/Aside/BranchTree.vue b/frontend/src/components/SchemaEditorV1/Aside/BranchTree.vue
index 209cef7b76..aeff68e9e6 100644
--- a/frontend/src/components/SchemaEditorV1/Aside/BranchTree.vue
+++ b/frontend/src/components/SchemaEditorV1/Aside/BranchTree.vue
@@ -526,8 +526,8 @@ const handleShowDropdown = (e: MouseEvent, treeNode: TreeNode) => {
};
const handleCreateTable = () => {
- if (engine.value === Engine.MYSQL) {
- const schema = schemaList.value[0];
+ const schema = schemaList.value[0];
+ if (schema) {
state.tableNameModalContext = {
parentName: branchSchema.value.branch.name,
schemaId: schema.id,