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 d4bc5ea64 [#4153] fix(ui): Reset table props when reset tables data 
(#4399)
d4bc5ea64 is described below

commit d4bc5ea6430fee0f16348095b96167a228405d04
Author: Qian Xia <[email protected]>
AuthorDate: Wed Aug 7 11:52:35 2024 +0800

    [#4153] fix(ui): Reset table props when reset tables data (#4399)
    
    ### 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?
    N/A
    
    Fix: #4153
    
    ### Does this PR introduce _any_ user-facing change?
    N/A
    
    ### How was this patch tested?
    manually operated
---
 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 = []

Reply via email to