Commit e9363cf1 authored by Christian Wach's avatar Christian Wach
Browse files

Fix fatal with Deashboard block on front-end

parent 07c7f33d
......@@ -541,7 +541,7 @@ class CiviCRM_Gutenberg_Blocks {
$attributes = array_merge(
[
'component' => 'profile',
'component' => 'user-dashboard',
'mode' => ($atts['component'] ?? 'profile') == 'profile' ? 'create' : 'live',
'hijack' => 0,
],
......@@ -569,6 +569,7 @@ class CiviCRM_Gutenberg_Blocks {
case 'user-dashboard':
$attributes = ['component' => 'user-dashboard', 'hijack' => $attributes['hijack']];
unset($attributes['mode']);
break;
case 'petition':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment