This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 77561126d5 [#7350] fix(web): fix model version aliases issue (#8169)
77561126d5 is described below
commit 77561126d51865168ddde58ee188156d76d0b386
Author: Qian Xia <[email protected]>
AuthorDate: Tue Aug 19 19:27:28 2025 +0800
[#7350] fix(web): fix model version aliases issue (#8169)
### What changes were proposed in this pull request?
RT
<img width="788" height="771" alt="image"
src="https://github.com/user-attachments/assets/2b9a82b9-767b-4ab6-b4dc-deb98104251b"
/>
### Why are the changes needed?
N/A
Fix: #7350
### Does this PR introduce _any_ user-facing change?
N/A
### How was this patch tested?
manually
---
.../src/app/metalakes/metalake/rightContent/LinkVersionDialog.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git
a/web/web/src/app/metalakes/metalake/rightContent/LinkVersionDialog.js
b/web/web/src/app/metalakes/metalake/rightContent/LinkVersionDialog.js
index 83c3127947..f0b619698b 100644
--- a/web/web/src/app/metalakes/metalake/rightContent/LinkVersionDialog.js
+++ b/web/web/src/app/metalakes/metalake/rightContent/LinkVersionDialog.js
@@ -226,7 +226,6 @@ const LinkVersionDialog = props => {
})
} else {
const reqData = { updates: genUpdates(cacheData, schemaData) }
- console.log('reqData', reqData)
if (reqData.updates.length !== 0) {
dispatch(
@@ -264,9 +263,8 @@ const LinkVersionDialog = props => {
setValue('uri', data.uri)
setValue('comment', data.comment)
- data.aliases.forEach((alias, index) => {
- setValue(`aliases.${index}.name`, alias)
- })
+ const aliases = data.aliases.map(alias => ({ name: alias }))
+ setValue(`aliases`, aliases)
const propsItems = Object.entries(properties).map(([key, value]) => {
return {