UI: Fix eslint errors

This commit is contained in:
Shreya Malviya 2022-04-01 20:10:38 +05:30
parent 2e389cc87e
commit a43c1479c8
3 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ class MapPageComponent extends AuthComponent {
body: JSON.stringify({kill_time: Date.now() / 1000.0})
})
.then(res => res.json())
.then(res => {this.setState({killPressed: true})});
.then(_res => {this.setState({killPressed: true})});
};
renderKillDialogModal = () => {

View File

@ -53,7 +53,7 @@ class ReportMatrixComponent extends React.Component {
}
renderTechnique(technique) {
if (technique == null || typeof technique === undefined) {
if (technique == null || typeof technique === 'undefined') {
return (<div/>)
} else {
return (

View File

@ -50,7 +50,7 @@ function aggregateMultipleResultsPba(results) {
for (let i = 0; i < results.length; i++) {
if (multipleResultsPbas.includes(results[i].name))
aggregateResults(results[i]);
if ((results[i].name === PROCESS_LIST_COLLECTION) && (typeof results[i].result[0] !== "string"))
if ((results[i].name === PROCESS_LIST_COLLECTION) && (typeof results[i].result[0] !== 'string'))
modifyProcessListCollectionResult(results[i].result);
}