fix: [metafields] don't show the element if no metafields are configured for the scope

pull/32/head
iglocska 2020-11-06 08:59:15 +01:00
parent 930d728a97
commit 1d611b2df8
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@
$ajaxFlashMessage,
$formCreate,
$fieldsString,
$this->element(
empty($metaFieldStrings) ? '' : $this->element(
'genericElements/accordion_scaffold', [
'body' => $metaFieldString,
'title' => 'Meta fields'
@ -126,7 +126,7 @@
$data['description']
),
$fieldsString,
$this->element(
empty($metaFieldStrings) ? '' : $this->element(
'genericElements/accordion_scaffold', [
'body' => $metaFieldString,
'title' => 'Meta fields'