This commit is contained in:
Henry Jameson 2026-09-04 01:05:52 +03:00
commit 6cf69c1e2d
4 changed files with 6 additions and 6 deletions

View file

@ -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
}

View file

@ -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])

View file

@ -47,8 +47,8 @@ const ensureFinalFallback = (codes) => {
}
export {
languages,
langCodeToJsonName,
langCodeToCldrName,
ensureFinalFallback,
langCodeToCldrName,
langCodeToJsonName,
languages,
}

View file

@ -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) {