Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 authored Sep 4, 2024
1 parent 7ae64c7 commit 25a9b96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Http/Controllers/ChannelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function show(Channel $channel)
{
return view('vanilo::channel.show', $this->processViewData(__METHOD__, [
'channel' => $channel,
'channelProducts' => (new ProductSearch())->withinChannel($channel)->withInactiveProducts()->getResults(),
'products' => (new ProductSearch())->withinChannel($channel)->withInactiveProducts()->getResults(),
]));
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/channel/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<x-appshell::button href="#" variant="outline-success" icon="+" size="sm">{{ __('Assign a product') }}</x-appshell::button>
</x-slot:actions>

{!! widget('vanilo::channel.products')->render($channelProducts) !!}
{!! widget('vanilo::channel.products')->render($products) !!}

</x-appshell::card>
@stop

0 comments on commit 25a9b96

Please sign in to comment.