Skip to content

Commit 4b9b459

Browse files
author
NarrowsProjects
committed
chore: fix eslint issues
1 parent 1ec7cb6 commit 4b9b459

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/public/components/Filters/RunsFilter/MagnetsFilteringModel.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ const magnetsCurrentLevelsToKey = ({ l3, dipole }) => ({ value: `${l3}kA/${dipol
2424
/**
2525
* Return the magnets current lever based on a key string
2626
*
27-
* @param {object} option string containing the current levels
28-
* @param {string} option.value string containing the current levels
27+
* @param {object} value string containing the current levels
2928
* @return {MagnetsCurrentLevels}
3029
*/
3130
const keyToMagnetsCurrentLevels = (value) => {
@@ -54,7 +53,7 @@ export class MagnetsFilteringModel extends ObservableBasedSelectionDropdownModel
5453
const [selectedOption] = this.selected;
5554

5655
if (selectedOption === undefined) {
57-
return;
56+
return null;
5857
}
5958

6059
return keyToMagnetsCurrentLevels(selectedOption);

0 commit comments

Comments
 (0)