Skip to content

Commit

Permalink
[4.x] Hide export submissions button when there are no valid exporters (
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell authored Nov 14, 2023
1 parent 4861762 commit 5f1509d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/forms/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@endcan
</dropdown-list>

@if ($exporters = $form->exporters())
@if (($exporters = $form->exporters()) && $exporters->isNotEmpty())
<dropdown-list>
<button class="btn" slot="trigger">{{ __('Export Submissions') }}</button>
@foreach ($exporters as $exporter)
Expand Down

0 comments on commit 5f1509d

Please sign in to comment.