]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Avoid null value (#27570)
authorVincent Langlet <VincentLanglet@users.noreply.github.com>
Sun, 4 Nov 2018 06:18:56 +0000 (07:18 +0100)
committerXhmikosR <xhmikosr@gmail.com>
Sun, 4 Nov 2018 06:18:56 +0000 (08:18 +0200)
scss/mixins/_breakpoints.scss

index cfdb1976b35a918de28a65a4ba28e2518fb46f33..23a5de96be0dfd0bcbf342a67ef62b1039500a77 100644 (file)
@@ -16,7 +16,7 @@
 //    md
 @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
   $n: index($breakpoint-names, $name);
-  @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
+  @return if($n != null and $n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
 }
 
 // Minimum breakpoint width. Null for the smallest (first) breakpoint.