Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#9830] web(UI): doris table edit (#9901)

Tanay Paul0ef6da977c00
diff --git a/web/web/src/app/metalakes/metalake/rightContent/CreateTableDialog.js b/web/web/src/app/metalakes/metalake/rightContent/CreateTableDialog.js
index 371de52f4a..6f647e92d5 100644
--- a/web/web/src/app/metalakes/metalake/rightContent/CreateTableDialog.js
+++ b/web/web/src/app/metalakes/metalake/rightContent/CreateTableDialog.js
@@ -207,7 +207,7 @@ const CreateTableDialog = props => {
updatedProps.forEach(item => (item.hasDuplicateKey = false))
}
- const isReserved = propInfo.reserved.includes(updatedProps[index].key)
+ const isReserved = propInfo.reserved?.includes(updatedProps[index].key) || false
updatedProps[index].isReserved = isReserved
setInnerProps(updatedProps)
@@ -549,7 +549,7 @@ const CreateTableDialog = props => {
return {
key,
value,
- disabled: propInfo.reserved.includes(key) || propInfo.immutable.includes(key)
+ disabled: propInfo.reserved?.includes(key) || propInfo.immutable?.includes(key)
}
})
diff --git a/web/web/src/lib/utils/initial.js b/web/web/src/lib/utils/initial.js
index db6334b4be..005629b194 100644
--- a/web/web/src/lib/utils/initial.js
+++ b/web/web/src/lib/utils/initial.js
@@ -678,11 +678,13 @@ const relationalTablePropInfoMap = {
},
'jdbc-starrocks': {
reserved: [],
+ immutable: [],
allowDelete: true,
allowAdd: true
},
'jdbc-doris': {
reserved: [],
+ immutable: [],
allowDelete: true,
allowAdd: true
},