From a71b1f4e33310cff3009689653a6766bdff92be3 Mon Sep 17 00:00:00 2001 From: Peter Santos Date: Wed, 29 May 2024 23:46:41 -0400 Subject: [PATCH] Resolve sonarcloud javascript:S6644 code smell --- CONTRIBUTORS.md | 1 + src/components/filtermenu/filtermenu.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 887c644822..8191689b63 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -87,6 +87,7 @@ - [JPUC1143](https://github.com/Jpuc1143) - [David Angel](https://github.com/davidangel) - [Pithaya](https://github.com/Pithaya) +- [Peter Santos](https://github.com/prsantos-com) ## Emby Contributors diff --git a/src/components/filtermenu/filtermenu.js b/src/components/filtermenu/filtermenu.js index 1423e5ac54..7d3e785d19 100644 --- a/src/components/filtermenu/filtermenu.js +++ b/src/components/filtermenu/filtermenu.js @@ -57,7 +57,7 @@ function renderDynamicFilters(context, result, options) { function setBasicFilter(context, key, elem) { let value = elem.checked; - value = value ? value : null; + value = value || null; userSettings.setFilter(key, value); } function moveCheckboxFocus(elem, offset) {