Skip to content

Commit

Permalink
fix: Fix workspace search order
Browse files Browse the repository at this point in the history
  • Loading branch information
leoliu committed Jan 10, 2020
1 parent aaaa5af commit c5c8999
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/clusters/containers/Workspaces/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ class Workspaces extends React.Component {
}

handleSearch = name => {
this.store.fetchList({ name, limit: 10 })
const params = { name, limit: 10 }
if (name) {
params.order = 'name'
}
this.store.fetchList(params)
}

renderList() {
Expand Down

0 comments on commit c5c8999

Please sign in to comment.