diff --git a/lib/zin/wg/blockpanel/v1.php b/lib/zin/wg/blockpanel/v1.php index 584cbef3df..083f52faca 100644 --- a/lib/zin/wg/blockpanel/v1.php +++ b/lib/zin/wg/blockpanel/v1.php @@ -55,4 +55,12 @@ class blockPanel extends panel $this->setDefaultProps($defaultProps); } + + protected function buildProps(): array + { + $props = parent::buildProps(); + $name = $this->prop('name'); + if(!empty($name)) $props[] = setData('block', $name); + return $props; + } }