Skip to content

Commit

Permalink
added check if grid property is defined when getting columns
Browse files Browse the repository at this point in the history
  • Loading branch information
tjodalv committed Oct 17, 2024
1 parent b9a24ce commit 3bfcfb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getGridColumns(?string $breakpoint = null): array | int | string
{
$gridColumns = $this->evaluate($this->gridColumns);

if (! is_array($gridColumns)) {
if (isset($gridColumns) && ! is_array($gridColumns)) {
$gridColumns = [
'lg' => $gridColumns,
];
Expand Down

0 comments on commit 3bfcfb4

Please sign in to comment.