This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch branch-0.6
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-0.6 by this push:
new c660390ac [#4153] fix(ui): Reset table props when reset tables data
(#4411)
c660390ac is described below
commit c660390ac6c77c7a715607e38476b33d3641c606
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Aug 7 14:02:18 2024 +0800
[#4153] fix(ui): Reset table props when reset tables data (#4411)
### What changes were proposed in this pull request?
Root cause: It will reset when get a table details data, and need to
reset table props too
Reset table props when reset tables data
<img width="1449" alt="image"
src="https://github.com/user-attachments/assets/32feea3f-ff66-4d87-8a60-a71402e4eeb1">
### Why are the changes needed?
Fix: #4153
### Does this PR introduce _any_ user-facing change?
N/A
### How was this patch tested?
manually operated
Co-authored-by: Qian Xia <[email protected]>
---
web/src/lib/store/metalakes/index.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/web/src/lib/store/metalakes/index.js
b/web/src/lib/store/metalakes/index.js
index d091ab880..b0cc84c49 100644
--- a/web/src/lib/store/metalakes/index.js
+++ b/web/src/lib/store/metalakes/index.js
@@ -937,6 +937,7 @@ export const appMetalakesSlice = createSlice({
},
resetTableData(state, action) {
state.tableData = []
+ state.tableProps = []
},
resetTree(state, action) {
state.metalakeTree = []