Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const getStageOperator = name => {
return STAGE_OPERATORS.find(op => op.name === name);
};
render() {
const operators = STAGE_OPERATORS.filter((o) => {
if (o.name === '$searchBeta') return true;
if ((o.name === OUT || o.name === MERGE) && !this.props.allowWrites) return false;
return semver.gte(this.props.serverVersion, o.version);
});
return (
<div>
</div>
constructor(props) {
super(props);
const textCompleter = tools.textCompleter;
this.completer = new StageAutoCompleter(
this.props.serverVersion,
textCompleter,
this.getFieldsAndProjections(),
this.props.stageOperator
);
this.debounceRun = debounce(this.onRunStage, 750);
}