From 768aa075fa289a83e6cb2cde92166ffbf667a198 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Wed, 31 Oct 2018 20:35:40 +0100 Subject: [PATCH] Avoid null value --- scss/mixins/_breakpoints.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scss/mixins/_breakpoints.scss b/scss/mixins/_breakpoints.scss index cfdb1976b35a..23a5de96be0d 100644 --- a/scss/mixins/_breakpoints.scss +++ b/scss/mixins/_breakpoints.scss @@ -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.