From 6579c21825bb0413f1f87aed047846c129a6902a Mon Sep 17 00:00:00 2001 From: Thuan Vo Date: Tue, 9 Jul 2024 16:17:42 -0700 Subject: [PATCH] chore: apply lint fixes Signed-off-by: Thuan Vo --- frontend/src/components/editor/BundleDownloader.js | 5 +---- frontend/src/components/editor/RulesEditor.js | 12 ++++++++++-- frontend/src/pages/operatorHub/OperatorHub.js | 7 ++----- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/editor/BundleDownloader.js b/frontend/src/components/editor/BundleDownloader.js index 9649fb3..3146f60 100644 --- a/frontend/src/components/editor/BundleDownloader.js +++ b/frontend/src/components/editor/BundleDownloader.js @@ -259,7 +259,4 @@ const mapStateToProps = state => ({ operatorPackage: state.editorState.operatorPackage }); -export default connect( - mapStateToProps, - mapDispatchToProps -)(OperatorBundleDownloader); +export default connect(mapStateToProps, mapDispatchToProps)(OperatorBundleDownloader); diff --git a/frontend/src/components/editor/RulesEditor.js b/frontend/src/components/editor/RulesEditor.js index f23628b..7d11ada 100755 --- a/frontend/src/components/editor/RulesEditor.js +++ b/frontend/src/components/editor/RulesEditor.js @@ -83,10 +83,18 @@ class RulesEditor extends React.Component { if (selections.includes('*') && selections.length > 1) { const prevSelections = _.get(rule, field); if (prevSelections.includes('*')) { - this.updateRule(rule, field, _.filter(selections, selection => selection !== '*')); + this.updateRule( + rule, + field, + _.filter(selections, selection => selection !== '*') + ); return; } - this.updateRule(rule, field, _.filter(selections, selection => selection === '*')); + this.updateRule( + rule, + field, + _.filter(selections, selection => selection === '*') + ); return; } diff --git a/frontend/src/pages/operatorHub/OperatorHub.js b/frontend/src/pages/operatorHub/OperatorHub.js index c696659..48971ab 100755 --- a/frontend/src/pages/operatorHub/OperatorHub.js +++ b/frontend/src/pages/operatorHub/OperatorHub.js @@ -612,7 +612,7 @@ class OperatorHub extends React.Component { {_.map(this.sortCategories(categories), category => (
{category === selectedCategory && (