Commit ff606891 by Peter Holmberg

small fixes

parent aac1b6c5
......@@ -119,7 +119,7 @@ export default class Thresholds extends PureComponent<PanelOptionsProps<OptionsP
onChange={event => this.onChangeThresholdValue(event, thresholds[1])}
value={thresholds[1].value}
/>
<div className="threshold-row-label">{thresholds[0].label}</div>
<div className="threshold-row-label">{thresholds[1].label}</div>
</div>
</div>,
];
......@@ -162,7 +162,7 @@ export default class Thresholds extends PureComponent<PanelOptionsProps<OptionsP
insertAtIndex(index) {
const { userAddedThresholds } = this.state;
if (userAddedThresholds === 0) {
if (userAddedThresholds === 0 || index < 0) {
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment