Skip to content

Commit

Permalink
Fix empty data for components (#32032)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Mar 19, 2020
1 parent 261e74c commit f511906
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected function compileComponent($expression)
{
[$component, $data] = strpos($expression, ',') !== false
? array_map('trim', explode(',', trim($expression, '()'), 2))
: [trim($expression, '()'), null];
: [trim($expression, '()'), ''];

$component = trim($component, '\'"');

Expand Down

0 comments on commit f511906

Please sign in to comment.