lint
This commit is contained in:
parent
4dbe95cdc9
commit
6cf69c1e2d
4 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
|
|
|||
|
|
@ -47,8 +47,8 @@ const ensureFinalFallback = (codes) => {
|
|||
}
|
||||
|
||||
export {
|
||||
languages,
|
||||
langCodeToJsonName,
|
||||
langCodeToCldrName,
|
||||
ensureFinalFallback,
|
||||
langCodeToCldrName,
|
||||
langCodeToJsonName,
|
||||
languages,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue