Skip to content

Commit 6579c21

Browse files
committed
chore: apply lint fixes
Signed-off-by: Thuan Vo <thuan.votann@gmail.com>
1 parent f49e8b3 commit 6579c21

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

frontend/src/components/editor/BundleDownloader.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,4 @@ const mapStateToProps = state => ({
259259
operatorPackage: state.editorState.operatorPackage
260260
});
261261

262-
export default connect(
263-
mapStateToProps,
264-
mapDispatchToProps
265-
)(OperatorBundleDownloader);
262+
export default connect(mapStateToProps, mapDispatchToProps)(OperatorBundleDownloader);

frontend/src/components/editor/RulesEditor.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,18 @@ class RulesEditor extends React.Component {
8383
if (selections.includes('*') && selections.length > 1) {
8484
const prevSelections = _.get(rule, field);
8585
if (prevSelections.includes('*')) {
86-
this.updateRule(rule, field, _.filter(selections, selection => selection !== '*'));
86+
this.updateRule(
87+
rule,
88+
field,
89+
_.filter(selections, selection => selection !== '*')
90+
);
8791
return;
8892
}
89-
this.updateRule(rule, field, _.filter(selections, selection => selection === '*'));
93+
this.updateRule(
94+
rule,
95+
field,
96+
_.filter(selections, selection => selection === '*')
97+
);
9098
return;
9199
}
92100

frontend/src/pages/operatorHub/OperatorHub.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ class OperatorHub extends React.Component {
612612
{_.map(this.sortCategories(categories), category => (
613613
<div key={category} className={`oh-category-item ${category === selectedCategory ? 'selected' : ''}`}>
614614
<button className="oh-category-item__select" onClick={e => this.categorySelect(e, category)}>
615-
{category.length == 0 ? 'All' : category}
615+
{category.length === 0 ? 'All' : category}
616616
</button>
617617
{category === selectedCategory && (
618618
<button className="oh-category-item__deselect" onClick={e => this.categorySelect(e, '')}>
@@ -890,7 +890,4 @@ const mapStateToProps = state => ({
890890
...state.viewState
891891
});
892892

893-
export default connect(
894-
mapStateToProps,
895-
mapDispatchToProps
896-
)(OperatorHub);
893+
export default connect(mapStateToProps, mapDispatchToProps)(OperatorHub);

0 commit comments

Comments
 (0)