Skip to content

Commit

Permalink
fix: cluster node count error
Browse files Browse the repository at this point in the history
  • Loading branch information
justahole committed May 6, 2020
1 parent 72e39de commit 5534177
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/pages/clusters/containers/Nodes/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ export default class Nodes extends React.Component {
}

getData = async params => {
await this.store.fetchList(params)
await this.store.fetchList({
...this.props.match.params,
...params,
})
await this.monitoringStore.fetchMetrics({
resources: this.store.list.data.map(node => node.name),
metrics: Object.values(MetricTypes),
Expand Down
2 changes: 1 addition & 1 deletion src/stores/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class NodeStore extends Base {
.length > 0
).length

this.masterCount = resp.total_count
this.masterCount = resp.totalItems
this.masterWorkerCount = masterWorker
}

Expand Down

0 comments on commit 5534177

Please sign in to comment.