@builder.io/react
Advanced tools
Comparing version 0.1.66-6 to 0.1.66-7
@@ -157,15 +157,17 @@ "use strict"; | ||
if (Array.isArray(columns)) { | ||
var containsColumnWithoutWidth = !!columns.find(function (col) { return !col.get('width'); }); | ||
var containsColumnWithWidth = !!columns.find(function (col) { return col.get('width'); }); | ||
if (containsColumnWithWidth) { | ||
clearWidths(); | ||
} | ||
else { | ||
var sumWidths = columns.reduce(function (memo, col) { | ||
return memo + col.get('width'); | ||
}, 0); | ||
var widthsDontAddUp = sumWidths !== 100; | ||
if (widthsDontAddUp) { | ||
var containsColumnWithoutWidth = !!columns.find(function (col) { return !col.get('width'); }); | ||
if (containsColumnWithoutWidth) { | ||
clearWidths(); | ||
} | ||
else { | ||
var sumWidths = columns.reduce(function (memo, col) { | ||
return memo + col.get('width'); | ||
}, 0); | ||
var widthsDontAddUp = sumWidths !== 100; | ||
if (widthsDontAddUp) { | ||
clearWidths(); | ||
} | ||
} | ||
} | ||
@@ -172,0 +174,0 @@ } |
{ | ||
"name": "@builder.io/react", | ||
"version": "0.1.66-6", | ||
"version": "0.1.66-7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3456280
24738