mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[logstash/pipeline-workers] show 0 when 0 (#33253)
This commit is contained in:
parent
3a52f3a863
commit
8b79d02f35
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ class PipelineEditorUi extends React.Component {
|
||||||
username,
|
username,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
const pipelineWorkers = settings['pipeline.workers'] ? settings['pipeline.workers'] : 1;
|
const pipelineWorkersSet = typeof settings['pipeline.workers'] === 'number';
|
||||||
|
const pipelineWorkers = pipelineWorkersSet ? settings['pipeline.workers'] : 1;
|
||||||
this.state = {
|
this.state = {
|
||||||
maxBytesNumber: settings['queue.max_bytes.number'],
|
maxBytesNumber: settings['queue.max_bytes.number'],
|
||||||
maxBytesUnit: settings['queue.max_bytes.units'],
|
maxBytesUnit: settings['queue.max_bytes.units'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue