Skip to content

A platform for community discussion. Free, open, simple.

REFACTOR: removes implicit operand conversion (#9700)

Joffrey JAFFEUX9d172eeaa532
diff --git a/app/assets/javascripts/select-kit/components/multi-select.js b/app/assets/javascripts/select-kit/components/multi-select.js
index 16681b82625..1252e47b1a8 100644
--- a/app/assets/javascripts/select-kit/components/multi-select.js
+++ b/app/assets/javascripts/select-kit/components/multi-select.js
@@ -115,7 +115,7 @@ export default SelectKitComponent.extend({
event.stopPropagation();
const input = this.getFilterInput();
- if (input && !input.value.length >= 1) {
+ if (input && input.value.length === 0) {
const selected = this.element.querySelectorAll(
".select-kit-header .choice.select-kit-selected-name"
);