ryohek %!s(int64=5) %!d(string=hai) anos
pai
achega
55382c9e78
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/client/js/models/BootstrapGrid.js

+ 1 - 1
src/client/js/models/BootstrapGrid.js

@@ -11,7 +11,7 @@ export default class BootstrapGrid {
 
   static validateColsRatios(colsRatios) {
 
-    if (colsRatios.length < 2) {
+    if (colsRatios.length < 2 || colsRatios.length > 4) {
       throw new Error('Incorrect array length of cols ratios');
     }
     const ratiosTotal = colsRatios.reduce((total, ratio) => { return total + ratio }, 0);