Skip to content

Commit

Permalink
resolves #708 (#719)
Browse files Browse the repository at this point in the history
* resolves #708

* simplify ternary+
  • Loading branch information
jamesros161 authored Aug 1, 2022
1 parent 1d3332d commit d4e4780
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static function slider_device_group( $device, $current_layout ) {
if ( ! array_key_exists( 'items', $row ) ) {
continue;
}
$items_in_row = count( $row['items'] );
$items_in_row = count( $row['items'] ) ? count( $row['items'] ) : 1;
$default_col_width = floor( 12 / $items_in_row );

if ( 'tablet' === $device || 'phone' === $device ) {
Expand Down

0 comments on commit d4e4780

Please sign in to comment.