提交 8c809019 编写于 作者: I isidor

debug: do not try to be overly smart with the ? operator

fixes #13746
上级 0da3fea0
......@@ -76,7 +76,11 @@ export class BreakpointWidget extends ZoneWidget {
this.hitCountContext = e === 'Hit Count';
this.inputBox.setAriaLabel(this.hitCountContext ? HIT_COUNT_ARIA_LABEL : EXPRESSION_ARIA_LABEL);
this.inputBox.setPlaceHolder(this.hitCountContext ? HIT_COUNT_PLACEHOLDER : EXPRESSION_PLACEHOLDER);
this.inputBox.value = (this.hitCountContext && breakpoint && breakpoint.hitCondition) ? breakpoint.hitCondition : breakpoint && breakpoint.condition ? breakpoint.condition : '';
if (this.hitCountContext) {
this.inputBox.value = breakpoint && breakpoint.hitCondition ? breakpoint.hitCondition : '';
} else {
this.inputBox.value = breakpoint && breakpoint.condition ? breakpoint.condition : '';
}
});
const inputBoxContainer = dom.append(container, $('.inputBoxContainer'));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册