This is an automated email from the ASF dual-hosted git repository. diqiu50 pushed a commit to branch cherry-pick/10837-to-branch-1.2 in repository https://gitbox.apache.org/repos/asf/gravitino.git
commit b5289f9fb10dba97463d5b5a6ad42080dc35edf2 Author: Bharath Krishna <[email protected]> AuthorDate: Fri Apr 24 03:10:09 2026 -0700 [Cherry-pick to branch-1.2] [#10837] fix(web-v2): Preserve hidden properties when editing a catalog (#10838) --- .../web/src/app/catalogs/rightContent/CreateCatalogDialog.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js b/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js index b1dab97d56..11ec2de7a1 100644 --- a/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js +++ b/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js @@ -294,6 +294,17 @@ export default function CreateCatalogDialog({ ...props }) { setConfirmLoading(true) const submitData = getSubmitData() if (editCatalog) { + // Backfill hidden default props that the form doesn't render during edit + const allDefaultProps = + (catalogType === 'model' + ? providerBase['model'].defaultProps + : providerBase[currentProvider]?.defaultProps) || [] + allDefaultProps.forEach(prop => { + if (isHidden(prop) && !(prop.key in submitData.properties) && cacheData?.properties?.[prop.key] != null) { + submitData.properties[prop.key] = cacheData.properties[prop.key] + } + }) + // update catalog const reqData = { updates: genUpdates(cacheData, submitData) } if (reqData.updates.length) {
