Skip to content

Commit

Permalink
Update src/Extensions/UserFormUseQueuedExportExtension.php
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Boyd <emteknetnz@gmail.com>
  • Loading branch information
dizzystuff and emteknetnz committed Jun 7, 2023
1 parent bbfeb2d commit 48cf053
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Extensions/UserFormUseQueuedExportExtension.php
Expand Up @@ -15,7 +15,9 @@ class UserFormUseQueuedExportExtension extends DataExtension
public function updateCMSFields(FieldList $fields)
{
$gridField = $fields->fieldByName('Root.Submissions.Submissions');
if (empty($gridField)) return;
if (empty($gridField)) {
return;
}

$config = $gridField->getConfig();
$oldExportButton = $config->getComponentByType(GridFieldExportButton::class);
Expand Down

0 comments on commit 48cf053

Please sign in to comment.