diff --git a/src/components/settings_modal/helpers/boolean_setting.js b/src/components/settings_modal/helpers/boolean_setting.js index e7b56f58c..284fddfda 100644 --- a/src/components/settings_modal/helpers/boolean_setting.js +++ b/src/components/settings_modal/helpers/boolean_setting.js @@ -21,7 +21,7 @@ export default { ...Setting.methods, getValue(e) { // Basic tri-state toggle implementation - if (!!this.indeterminateState && !e && this.visibleState === true) { + if (this.indeterminateState && !e && this.visibleState === true) { // If we have indeterminate state, switching from true to false first goes through indeterminate return this.indeterminateState } diff --git a/src/components/settings_modal/tabs/style_tab/style_tab.js b/src/components/settings_modal/tabs/style_tab/style_tab.js index a023b4415..4f701a6b7 100644 --- a/src/components/settings_modal/tabs/style_tab/style_tab.js +++ b/src/components/settings_modal/tabs/style_tab/style_tab.js @@ -846,7 +846,7 @@ export default { exports.previewClass = computed(() => { const selectors = [] if ( - !!selectedComponent.value.variants?.normal || + selectedComponent.value.variants?.normal || selectedVariant.value !== 'normal' ) { selectors.push(selectedComponent.value.variants[selectedVariant.value]) diff --git a/src/i18n/languages.js b/src/i18n/languages.js index 1b7c0699e..5a0827af0 100644 --- a/src/i18n/languages.js +++ b/src/i18n/languages.js @@ -47,8 +47,8 @@ const ensureFinalFallback = (codes) => { } export { - languages, - langCodeToJsonName, - langCodeToCldrName, ensureFinalFallback, + langCodeToCldrName, + langCodeToJsonName, + languages, } diff --git a/src/services/theme_data/iss_utils.js b/src/services/theme_data/iss_utils.js index d42da3780..bca0a8eca 100644 --- a/src/services/theme_data/iss_utils.js +++ b/src/services/theme_data/iss_utils.js @@ -186,7 +186,7 @@ export const combinationsMatch = (criteria, subject, strict) => { */ export const findRules = (criteria, strict) => (subject) => { // If we searching for "general" rules - ignore "specific" ones - if (criteria.parent === null && !!subject.parent) return false + if (criteria.parent === null && subject.parent) return false if (!combinationsMatch(criteria, subject, strict)) return false if (criteria.parent !== undefined && criteria.parent !== null) {