Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
renderPresets() {
const { essence } = this.state;
const PresetDropdown = Dropdown.specialize();
var selected = find(latestPresets, p => p.selection.equals(essence.getPrimaryTimeSelection()));
return {
if (a === b) return true;
if (!a !== !b) return false;
return a.selection === b.selection;
}
}
renderItem={(p) => p ? p.name : ""}
onSelect={this.selectPreset.bind(this)}
/>;
}
private getClusterManagerFor(clusterName: string): ClusterManager {
return find(this.clusterManagers, (clusterManager) => clusterManager.cluster.name === clusterName);
}
private getClusterManagerFor(clusterName: string): ClusterManager {
return find(this.clusterManagers, (clusterManager) => clusterManager.cluster.name === clusterName);
}